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
Not to revive a 6-year-old thread or anything, but it should be noted to anyone reading that you can end your script with
Stop-Process -processname regedit
if you have the registry tweak (global fix) enabled and actually want to run an automatically-closing script.