Skip to content

modify agent-rdp automate run to properly join the command line arguments array #77

@rgl

Description

@rgl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions