agent-rdp automate run should properly join the command line arguments array at:
|
$commandArgs = if ($Params.args) { $Params.args -join " " } else { "" } |
Creating the command line is not as simple as space join the arguments array, it has to be something like the WindowsCommandLinePasteArguments::Paste method at https://github.com/rgl/windows-powershell-command-line-arguments/blob/188042a43a015ad0af03a31a3a398575cf458b46/WindowsCommandLine/WindowsCommandLine.psm1#L24
If that's welcomed, I can try to create a PR.
agent-rdp automate runshould properly join the command line arguments array at:agent-rdp/crates/agent-rdp-daemon/src/automation/scripts/lib/actions.ps1
Line 537 in e4c45f9
Creating the command line is not as simple as space join the arguments array, it has to be something like the
WindowsCommandLinePasteArguments::Pastemethod at https://github.com/rgl/windows-powershell-command-line-arguments/blob/188042a43a015ad0af03a31a3a398575cf458b46/WindowsCommandLine/WindowsCommandLine.psm1#L24If that's welcomed, I can try to create a PR.