Have managed to get this working using PSEXEC from MACIEP suggestion I used the interactive switch to show that the script was running remotely. Can I do something similar with the UDF?

Regards

Steve.