Allow commands to test whether they are being executed in a batch process.