I know that there is that little -noexit switch for PowerShell.
Is there anyway of staying in the shell without using that switch?
In other words, I
You basically have 3 options to prevent the PowerShell Console window from closing, that I describe in more detail on my blog post.
PowerShell -NoExit "C:\SomeFolder\SomeScript.ps1"Read-Host -Prompt "Press Enter to exit"See my blog for more information on which registry keys to modify.
Sounds like you are looking for option #1 or #3.