PowerShell -ErrorAction: When Stop Beats Continue for Predictable Scripts
Use -ErrorAction Stop per call for predictable try/catch handling instead of relying on $ErrorActionPreference. Understand where the common parameter is ignored and how precedence works.