I usually miss the obivious so excuse this question if it's TOO easy! I have a 3rd party command utility called UPTIME that will tell you how long a machine has been running. The command line is very simple UPTIME SERVERNAME How can I use that command and store the results as a value? I tried the obivious Code:
 $X = SHELL '%COMSPEC% /c UPTIME SERVERNAME' 

But that doesn't work. What's the quick, easy solution I'm missing? I want to check a few servers using a looping script and store each output to use in a message box. I have the rest of the script to do what I need. I'd rather not do this by creating a temporary output file if I can. Thanks!