Also there are different issues in returning errorlevels of rcmd commands :

it returns 1 only if the rcmd session was finished successfully but not the errorlevel of the command (this was to be returned with a trick i can't remember right now)
_________________________