Search code examples
powershellprocesswindow

start-process in Powershell closes Window automatically after execution is complete


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?


Solution

  • Try passing -noexit as a parameter to powershell.exe when you start it.