Adding BatchMode=yes for rexec func