Start PowerShell with -NoExit not working

Question:

Need to launch several jobs in PowerShell, but they should be in different sessions. So to launch one, one could use:

But the new window closes as soon as the command finishes. Even though I’m using -NoExit parameter. Acording to this article and this question, this should work. Even tried to block the window, by waiting for an user input, but it just closes.

Answer:

While the command parameters are named, position is still critical (see PowerShell.exe /?):

Source:

Start PowerShell with -NoExit not working by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply