[COOK-2672] read output into memory before printing to avoid pager