lol ok I think I'm almost there...now I'm getting this error with the pipe command...
Code:

$output = pipe("C:\pstools\psloggedon \\" + $computer)
writeline(2, $output + @CRLF)



ERROR : Error in expression: this type of array not supported in expressions.!
Script: c:\pctest.kix
Line : 11

line 11 is the writeline...so since the writeline doesn't work...how do I place the contents of that array into a file??

Thanks!