Executes the batch program defined in commandline. After the execution the output and the errno attributes contain the resulting information. If the program runs successfully, it returns 0; if an error is encountered during the execution, it returns -1.