Consider "outer.ps1":
"in outer.ps1"
. .\inner.ps1
"in outer.ps1 after sourcing inner.ps1"
that sources "inner.ps1" which just exits:
exit 0
When I run "outer.ps1" the output indicates that the exit only returns from "inner.ps1":
in outer.ps1
in outer.ps1 after sourcing inner.ps1
Is it possible to exit the powershell process from inner.ps1? I don't want to throw an exception, this would be a normal termination.