I am trying to launch a program 'Beyond Compare' using the PowerShell command
process=Start-Process -FilePath "C:\Program Files\Beyond Compare 4\BCompare.exe"
This works perfectly fine when I use it in Powershell. However, the same does not work when I use Tosca.
I am using the TBox Start Program and passing the Argument as $process=Start-Process -FilePath "C:\Program Files\Beyond Compare 4\BCompare.exe". This fails to launch the Beyond Compare program. I use Powershell to launch the program because I plan to follow up with additional arguments for file comparison.
I have tried the same syntax to launch notepad.exe and it works fine. Any reason why the Beyond Compare program is failing to launch?
you would first have to define that you want to run Powershell via cmd. https://superuser.com/questions/1080239/run-powershell-command-from-cmd. Did you tried that?