Script to mange batches of sequentially numbered files