I have a powershell Script that runs fine in the ISE, but when I run it directly from the .ps1 file it stops at this point:
Write-Host "Attempting to start FFMPEG Process with arguments:$ArgumentList::::" -ForegroundColor Green
Start-Process $SCRIPT:FFMPEGLocation $ArgumentList -Wait
I get the Write-Host printout, with the correct Argument List, but no window pops up for the start-process or anything. I made sure to use the SCRIPT scope variable for anything that is outside the function. It runs fine in ISE just not when I run it in Console. No errors either, and the $SCRIPT:FFMPEGLocation variable is a direct path to the exe to be executed.
Any help would be greatly appreciated, and if you need more let me know.
PSVersion 5.1.14393.1066
OSVersion 10.0.14393
scriptscope for the path and filename of the executable? WhyStart-Process? In fact, why do you need script at all? Just run the executable from the PowerShell prompt with the parameters you want. - Bill_Stewart$SCRIPT:FFMPEGLocationdeclared at the top of my script outside of atry {section. I know, I was a bad boy and am trying to do too much in a scripting language. I'm just trying to make this work outside of the ISE for now, and then I can make a program or service in C# later. - Drew Courtney