As I understand it, no. From what I have read, when a command is run from a Shell environment within a script, it cannot simply receive the returned error/value; it must be written to a file and then read from that file. I, of course, have no idea which site I read it on but I believe it was a MSDN KB article. If anyone out there can verify this, it would be helpful.