progress bar in popen batch