afaik, you have 100% thing in vbscript.

place the UDF code somewhere in your script and call it like any other inbuild or user defined function.
and in how to use UDFs, it's so simply put that I have no idea how anyone can say it looks complicated.
_________________________
!

download KiXnet