I didn't check your script but this error could be because your are running on a "system account" security context on remote machine and with your security context on local machine.
In the past I used PsExec to run Perl program as like you want.
I packeted my system with PAR and ran remote with psexec.
Maybe will help you.
Solli Moreira Honorio
Sao Paulo - Brazil
Probably a really stupid question, but could the SNMP service be required in order to run the script remotely?
Tom Melly, email@example.com