From d08dfecfd8a9279b01375a75f2637c5faaf37552 Mon Sep 17 00:00:00 2001 From: clr2of8 Date: Tue, 10 Oct 2023 12:34:05 -0600 Subject: [PATCH] args array and pause runner option --- Private/Invoke-ExecuteCommand.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Private/Invoke-ExecuteCommand.ps1 b/Private/Invoke-ExecuteCommand.ps1 index 0c96a71..41c226a 100644 --- a/Private/Invoke-ExecuteCommand.ps1 +++ b/Private/Invoke-ExecuteCommand.ps1 @@ -10,13 +10,15 @@ function Invoke-ExecuteCommand ($finalCommand, $executor, $executionPlatform, $T $execPrefix = "/c"; $execExe = "cmd.exe"; $execCommand = $finalCommand -replace "`n", " & " - } + $arguments = $execPrefix,"$execCommand" + } else { $finalCommand = $finalCommand -replace "[\\](?!;)", "`\$&" $finalCommand = $finalCommand -replace "[`"]", "`\$&" $execCommand = $finalCommand -replace "(?