Update test.ps1

This commit is contained in:
2026-02-05 01:49:22 -05:00
parent 929f0848af
commit fa1b131bc9

View File

@@ -216,7 +216,8 @@ function Invoke-ServiceImagePathAudit {
# Fallback: if we can't confidently isolate an exe, quote the whole string
# (better than producing broken quotes)
$badKey = "Yes"
$fixed = '"' + $trim.Trim('"') + '"'
$fixed = '"' + $exe + '"' + ($(if ($null -ne $args) { $args } else { '' }))
#PoSH 7 -> $fixed = '"' + $trim.Trim('"') + '"'
}
$outObj | Add-Member NoteProperty BadKey $badKey -Force