I've been using Unix for about 20 years, but only started using Powershell recently. I have a ps1
script that does a number of tasks.
I know I could check each of them, and throw if they error, but it would be good for the entire script just to exit on any errors - like set -e
does in bash.
How can I make a Powershell script exit immediately upon any error?
Using pwsh 6.2.1.