Executing SQL scripts using powershell
I need PowerShell to run multiple Oracle SQL scripts from a folder. I am using below code, the foreach
loop is not working. It always executes the first script and exit. I have tried using for
loop instead of foreach
, it also doesn’t work. After the Invoke
statement it is not returning to the foreach
line.