Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 546

PowerShell • New shell window from GUI

$
0
0
Trying to launch a new shell window from a GUI based form. Using the below code works when I debug the program from within Powershell Studio..

Code:

Start-Process powershell.exe -argumentlist "c:\filepath\Script.ps1"
However, when I build the program and try the same thing from running the actual executable, I get the following prompt and it never launches the new shell window.

Image

Not sure where the difference is between debugging and running the .exe

Statistics: Posted by Shelltastic — Mon Sep 09, 2024 9:14 am



Viewing all articles
Browse latest Browse all 546

Trending Articles