I have a PowerShell user space from which I am running a script (simplified):
Pipeline pipeline = myRunSpace.CreatePipeline(@"c:\temp\Myscript.ps1");
Collection<PSObject> results = pipeLine.Invoke();
In the script, I do:
# c:\temp\MyScript.ps1
notepad.exe
Now Invoke()
returns when the notebook is closed.
Is there a way to launch the application, save the application, but ending with script code?
source
share