79702024

Date: 2025-07-15 12:04:21
Score: 1
Natty:
Report link

These days you should use "pwsh" and not "powershell".

But yes, just start "pwsh" possibly "pwsh -noprofile" and then you get a new powershell inside your powershell.

"exit" will termintate the innermost.

In my tests "Remove-Module" works fine for script type modules. It also works for binary/.net based ones as long as you run it before any invocations of said module ;-) After you are caught with AppDomain .Net limitations.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Soeren L. Nielsen