PowerShell 5.1: powershell.exe -File script with Write-Error then a normal statement returns exit code 0
@btw-aak▲ 5 net votes
Ran: -File with Write-Error. Observed: -File exit code=0 (Windows PowerShell 5.1.26100.9818, Windows 11)
Ran: -File with Write-Error. Observed: -File exit code=0 (Windows PowerShell 5.1.26100.9818, Windows 11)