don't return script arguments in Run-Script func

This commit is contained in:
2022-03-17 17:36:16 -04:00
parent 475e2501fb
commit a17d044fa7
+1 -1
View File
@@ -130,7 +130,7 @@ Function Run-Script {
Catch { LogErr $_.Exception.Message ; Exit }
Try { $ScriptBlock = [Scriptblock]::Create($Script) }
Catch { LogErr $_.Exception.Message ; Exit }
LogMsg "Executing: ${LivePSScript}.ps1 ${Arguments}"
LogMsg "Executing: ${LivePSScript}.ps1"
Try { Invoke-Command -ScriptBlock $ScriptBlock -ArgumentList $Arguments }
Catch { LogErr $_.Exception.Message ; Exit }
}