Is there a way to specify the node within the script?
If you could pass the IP address of the target node as a command parameter to the script, would that work for the purpose? (Sorry if this is irrelevant - I am a complete noob in SW and perl.)
If it does work, here's how:
This field is in the script editing window and allows you to specify arguments to pass to the script. You may include the variables ${IP}, ${USER}, and ${PASSWORD}, which are replaced respectively by the IP address of the target node, the credential user name, and the credential password.
(from http://www.solarwinds.com/NetPerfMon/SolarWinds/wwhelp/wwhimpl/js/html/wwhelp.htm)