pub fn powershell_rewrite(command: &str, escaped_label: &str) -> StringExpand description
Build the PowerShell form. Native commands set $LASTEXITCODE;
cmdlets set only $?, so fall back to that. The $(...)
subexpression keeps the trailing __ out of the variable name.