We would like to have a PowerShell template script button at “PowerShell data source configuration” and “Tasks” in delegated forms. This script should provide a basic PowerShell script with the best practices. For example, how to map “global service automation variables” and “local form variables”. And additional how to correctly Try/Catch the PowerShell script with correct logging.
This should make starting a new Delegated form easier and adding additional custom form fields easier.
===== edited ====
With this feature we will introduce a "set default script" button for PowerShell scripts that run on the SA Agent. This means it is supported by the PowerShell data source, Delegated form task and the new Product actions (currently beta, release in 2023.08).