PowerShell scripts
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 the following ways:
In PowerShell tasks (both PowerShell Scheduled tasks and PowerShell Product tasks)
In PowerShell data sources (to populate Form elements)
In script templates you create in Automation > PowerShell Scripts, which can be reused in other objects (not recommended and not documented)
In your PowerShell scripts, you have access to relevant Service Automation variables.