title: How to stop a PowerShell script on the first error?
body: <p>I want my PowerShell script to stop when any of the commands I run fail (like <code>set -e</code> in bash). I'm using both Powershell commands (<code>New-Object System.Net.WebClient</code>) and programs (<code>.\setup.exe</code>).</p>