It seems you've solved a problem I'm trying to solve (one outside of RDM)...
What's "under the hood" behind your File > Options > Types > Other > PowerShell > Execute Mode (Command vs EncodedCommand)? How does this change executions?
When selecting "Command" : Is there a different cmdlet you're able to use that does not use the "-EncodedCommand" parameter? Does one use Start-Job, and the other something different?
I will ask one of our dev to check this.
Regards
David Hervieux
Hello,
I took a look at the code and what changes between Command and EncodedCommand is the command line argument we use (and how we send the parameter). Take a look at this Microsoft Powershell command line help: https://docs.microsoft.com/en-us/powershell/scripting/core-powershell/console/powershell.exe-command-line-help?view=powershell-6
If you use the Command mode in RDM, we use the "-Command" parameter. If you use the EncodedCommand mode, we use the "-EncodedCommand" parameter. The data we send in the EncodedCommand mode is encoded in base64. From what I could see this is the only difference between both modes.
I hope this helps you out!
Regards,
Hubert Mireault