I find that if I start a process by start-process
in powershell , the new window will be closed automatically after execution complete , is it possible to keep it waiting for my further command to close?
Try passing -noexit
as a parameter to powershell.exe
when you start it.