Since Windows Powershell 5.1 doens't get any feature updates anymore, and Powershell 7 has some notable performance improvements it would be nice to specify the powershell version with which we want to run datasource and delegated form scripts with.
Also the helloid cloud agent only supports powershell 7, so it makes sense to also support this on a locally installed system.
=== Updated scope of this feature request ===
  • Applies to the local Service Automation Agent (PowerShell data sources, Delegated Form tasks and new Product actions)
  • Adds a new Agent configuration setting to support PowerShell 7
  • The Agent can run Windows PowerShell 5.1 or PowerShell 7 not both. You need to setup an other Agent Pool with other agents to support both PowerShell versions)
  • PowerShell 7 must be installed on the local system
  • Default value remains Windows PowerShell, which is the current behavior