I know it's possible to run a "local powershell script" remotely via the RDM agent (installed on remote server) via the GUI.
but I would like to know if it's possible to script this via powershell.
I.e, run a command that would call the RDM agent and execute the script, without the need to use the GUI.
if it's possible can you give one or 2 examples ?
I am afraid to say that this is not possible. The interaction with the agent can only be made through the UI.
Sorry about that.