Following are some requirements that you must follow when using scripts with the Process agent:
In the above example, the supplied script assumes that Service Group 1 and Service Group 2 will never come online on one system. Service Group Workload Management or triggers must be configured to meet this requirement.
When using this configuration, we recommend setting the user context of the Process agent to LocalSystem.