This error is seen from vRA 8.17.0 onwards, when executing local system commands on the vRO server app via workflows utilising the JS script engine:
"This method is disabled for security reasons. 'Command' is deprecated and will be removed in future release"
Approvals for such activities with deprecated 'Command' are also marked with a red exclamation mark even if those were granted correctly.
VMware Aria Automation Orchestrator 8.17.0 or newer
A change was introduced in 8.17.0 to disable usage of the Command interface in javascript for security reasons.
The permanent solution is to alter workflows so that they are not directly running commands via javascript, if at all possible.
If this presents a big challenge, there are two options: