The problem seems to have changed a bit.
My goal is to execute a command, (OWSADM.EXE -o fulluninstall -p 80 -m 123.123.123.123), on a remote server, and get the results, and parse through it to see if it was successful.
Currently, im executing it via psexec, and getting that output, but psexec seems to throw my script off, as it has all of its annoying headers and what not.
Anyone have any good ideas on executing commands like that though something other than telnet or psexec? I just want to run it and get the result