Sure - look for the UDF called WSHpipe(). It allows you to run a command via WSH and capture the output.
 Code:
$aResult = WSHpipe('plink -ssh -l root -pw xyz 172.25.xx.yy uname -p')
This returns an array of output lines that you can enumerate.

The copy here combines STDOUT and STDERR into a single array. I have a modified version on my web site's Resources page that returns a 2-element array of arrays, with STDOUT in one element and STDERR in the other.

Either one will do what you want - return the output of a command in a variable. The other common way is to redirect the output to a file and then use Open/ReadLine to read the data, but that is (in my opinion) messy.

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