PowerShell scripts in Service Automation
Service Automation lets you run custom PowerShell code inside other objects, to perform actions and create integrations that are specific to your organization's needs.
PowerShell can be used in:
In your PowerShell scripts, you have access to relevant Service Automation variables.
Limitations
Importing a PowerShell module with the Cloud Service Automation Agent is not allowed.
If a script requires a PowerShell module, it must be executed via the On-premises Service Automation Agent service, and the module must be installed and available on the server where the agent is running.