Added batch command processing for console