Basic principle would be to read computername and OS from .INI file. If OS is Windows NT/2000/XP then copy batch file that calls the script to the admin share on the remote computer. Then use the ScheduleTask() UDF to schedule a remote task calling the just copied batch file.

That's the basic principle used in KSMS. However, it has some more stuff in the server script for the off case where a computer might be offline.
_________________________
There are two types of vessels, submarines and targets.