Pass '--return' settings in batch mode.
Merge pull request #11159 from StephenPCG/fix-returner-in-batch-mode

Pass '--return' settings in batch mode.