would this be like...

$result=wmicmd($command,$some options)

where $result[0] is the normal output and $result[1] is the error out?
_________________________
How to ask questions the smart way <-----------> Before you ask