start-process in Powershell closes Window automatically after execution is complete
Try passing -noexit
as a parameter to powershell.exe
when you start it.
you mean start a command prompt? right? if so, hope following script could be helpful
Start-Process cmd -ArgumentList '/c','echo test' # auto close
Start-Process cmd -ArgumentList '/k','echo test' # keep waiting