For general reference, when configuring tasks for both Linux shell and Windows PowerShell, you must set “Execution Type” to “Both”. Then, select the script and configure the Execution Command as per below:
For Windows PowerShell:
.\@file @parameter1 @parameter2
For Linux Shell:
./@file @parameter1 @parameter2
Be advised that on the above commands, you must replace <parameter1> and <parameter2> with the actual name of the parameters which are required as per the script configuration in the backend. You can view this by switching to the parameters tab in the task configuration window after you select the target script that the task will be executing.
On either of the Windows or Linux task you are required to configure timeout for the execution to stop once the timer reach the configured value. (default 1200 seconds)
In addition, you are required to mention which action to apply Stop / Start & the desired service to which this task will be executed on.