Does that server have PowerShell v1 installed, by chance? The syntax you posted should be working on PowerShell 2.0 or later, but I’m not sure about 1.0 (which I never used.)
Yes, that server is v1. So this command is not working for v1? The problem is that some of the servers has executionpolicy set to “restricted” (i will run the script on many servers and I don’t want to change the policy manually on each one, nor do i want to change the registry to relax the policy). I thought -ExecutionPolicy ByPass would be the best choice, but then this problem occurs.
Unless you have a really compelling reason to stay at v1, you really should upgrade PowerShell. You don’t get all the remoting goodness until at least v2.