Issue when saving scheduled task PowerShell scripts.
When saving a scheduled task script that has the OnInit function to include a library script causes the script the execute twice on every configured ARS server in the environment. Removing the OnInit code from the script stops the behavior.
Product's design. An enhancement request (TF00616178) has been created to resolve the Issue while saving scheduled task PowerShell scripts.
An enhancement request (TF00616178) has been created and the issue will be fixed in a future release of the product.