The Powershell scripts can be easily executed from CA Workload Automation DE (dSeries). Before running the scripts, it is necessary to make sure the user or system has been granted adequate permission(s). E.g.
set -executionpolicy -executionpolicy unrestricted
To run the Powershell script, set up the Windows job in DE (see image). Define the Powershell.exe path in the 'Command to run' field.
Next, define the script in the 'Arguments to pass' field. You may also need to define the user that will execute the script in 'User ID'.
Note: If the job is failing due to script errors, then please make sure the user has proper permission to execute the script. It is always recommended to test running the script manually in Powershell.