Skip to content

modify agent-rdp automate run to execute any cli command #76

@rgl

Description

@rgl

Currently, agent-rdp automate run '$PSVersionTable' --wait is hard-coded to use powershell.exe:

$startInfo = New-Object System.Diagnostics.ProcessStartInfo
$startInfo.FileName = "powershell.exe"
$startInfo.Arguments = "-NoProfile -Command `"$command $commandArgs`""

That artificially limits what can be executed.

Can we instead run any command? For example, I want to use pwsh.exe instead of powershell.exe.

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