On my Debian 11 VM, the ‘exit’ command in a PowerShell script does not work as expected.
The script stops working, but the process does not exit either.
Now I use this to exit immediately.
[System.Environment]::Exit(0)
On my Debian 11 VM, the ‘exit’ command in a PowerShell script does not work as expected.
The script stops working, but the process does not exit either.
Now I use this to exit immediately.
[System.Environment]::Exit(0)