You need to download the WSHpipe UDF (either here or from my site) and either paste a copy of the function into your script, or use CALL 'path\to\whspipe.udf' to load it at run-time.

Please review ALL of the links that Allen posted, particularly 'How to use UDFs'.

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