WMI can query computers remotely, no need to run code on local workstations. Take a look at the WMIQuery() UDF and read up on WMI.

If you have a client script, then you will still have to tell each client to run the script.

And again, both the KSMS links and my example provide basic concepts on how to accomplish this with client scripts.
_________________________
There are two types of vessels, submarines and targets.