Without knowing what your VBScript outputs and why you do a Split() on the array output from WSHPipe(), there is not much we can do.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.