Running macros in batch process mode