in reply to Help! Problems running a script remotely

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