Let's see more of the actual script and not just that snippet please.

Also what version of KiXtart and are any of these remote systems Vista or 64 Bit ?