I know that there is that little -noexit switch for PowerShell.
-noexit
Is there anyway of staying in the shell without using that switch?
In other words, I
Have you tried
$host.enternestedprompt()
That will stop execution and drop them to a nested prompt. When they exit that prompt, then the script will finish and the window will close.