You can use objects from the PowerShell plug-in API to work with results that Windows PowerShell returns.
|Returns a list of errors reported by the PowerShell engine during script invocation.
|Status of the script. The possible values are Completed or Failed.
|Output of the script as it appears on the PowerShell console.
|Objects returned by the PowerShell engine. The returned object is of type PowershellRemotePSObject.
PowershellRemotePSObject is a remote representation of objects returned by the PowerShell engine. PowershellRemotePSObject contains XML serialization of the result that can be accessed by calling the getXml() method.
- If the returned object is of a primitive PowerShell type, the object is mapped to the corresponding Orchestrator primitive type.
- If the returned object is of type collection, the object is represented as ArrayList.
- If the returned object is of type dictionary, the object is represented as Hashtable.
- If the returned object is of type complex, the object is represented as PSObject.