From fa1b131bc99dff34a3c5f0adf0a4a9352547702c Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Thu, 5 Feb 2026 01:49:22 -0500 Subject: [PATCH] Update test.ps1 --- test.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.ps1 b/test.ps1 index f047672..b67a38e 100644 --- a/test.ps1 +++ b/test.ps1 @@ -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