Until someone with some time comes around to convert this, I'm assuming you you were trying to use RUN or SHELL, which neither of these does anything with the output of the program they run. If that is the case you can use the UDF WSHPIPE to get the output of your vbs script into array.

There are a number of ways to get the line output to a var, so the pseudo code could be something like below, but depending on your output, it could be also done using left or right(instead of instr):

 Code:
$output=wshpipe("cscript path\filename.vbs")
for each $line in $output
  ? $line ; this is good for testing, but remove this to stop displaying all the results
  if instr($line,"something that will always be in the output you can search for")
    $newvar=$line
  endif
next

? "NewVAR=" = $newvar


WSHPipe -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=83201#Post83201


How to use UDFs -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81943#Post81943

The rest of the UDFs are here -
http://www.kixtart.org/forums/ubbthreads.php?ubb=postlist&Board=7&page=1