A. Why the sleep? Seems unnecessary as Shell will wait for the command to complete.
B. Try the WSHPipe UDF - it will capture both STDOUT and STDERR. Your command only writes STDOUT. Just write the output to the screen to see what you get..
C. Does the command (with the redirection) work when you run it from the command line?

Glenn
_________________________
Actually I am a Rocket Scientist! \:D