I want my PowerShell script to stop when any of the commands I run fail (like set -e in bash). I’m using both Powershell commands (New-Object System.Net.WebClient) and programs (.\setup.exe).

10 Answers
10

Leave a Reply

Your email address will not be published. Required fields are marked *