Summary: Use Windows PowerShell to access the Orchestrator variables or published data.
How can I use Windows PowerShell to access the Orchestrator variables or published data from the data bus?
Right-click the middle of the script, click Subscribe, and choose Variable or Published Data as you normally would in Orchestrator.
Ensure that you enclose the subscribed data within quotation marks if the information is a string or Date/Time data, and then assign it to a Windows PowerShell object as you normally would:
$FooString=”{SomeCoolThingInOrchestrator}”
$FooNumber={ACounterOfSomeKind}
[Datetime]$FooDate=”{DateFieldfromOrchestrator}”