Just put the list of servers into an array.
code:
$servers='server1','server2','server3'
for each $server in $servers
$rc=scheduletask($server,...)
next

_________________________
There are two types of vessels, submarines and targets.