Code:

;terminal server test for tiwsmgr.exe
$SystemList = 'terminalserver',''
If AScan ($SystemList, @WKSTA)>=0
RUN "\\server\tiwsmgr.exe"
EndIf