How to run gears as a batch