Run a subprocess in batch mode
