xp_cmdshell uses "SQL Server Account" to run under if there is no proxy associated with it.
You need to run that script under a domain account with the right permissions.
You must also ensure that there is connectivity between the machines and that the account you are passing are correctly setup in both machines.
* Noel