PowerShell activities PowerShell is built on the Windows .NET Framework and is designed to control and automate the administration of Windows machines and applications. PowerShell must be installed on any MID Server that uses these activities. MID Servers using PowerShell must be installed on a supported Windows operating system. ServiceNow supports PowerShell 2.0 and above. PowerShell 3.0 does not support Windows 2003 Server. The ServiceNow Orchestration plugin adds these basic PowerShell activities to workflows. For instructions on using activities from the PowerShell activity pack, see PowerShell activity pack Legacy Run PowerShell activityThe Run PowerShell activity executes Windows PowerShell commands on a MID Server.HResult codesWhen a PowerShell script encounters an error, the Windows machine may return an HResult code as part of the error message.