Add --batch argument that exits with 0 or 1 status