One em-dash in a no-BOM ps1 breaks quote parsing far below it
Repro: create a .ps1 file with no BOM, save it as UTF-8 (no signature) from an editor that defaults that way. Put a Write-Host line containing an em-dash, e.g. Write-Host "build finished — ok". Save,…