script to queue jobs in batch