Break a list of commands into chunks to be executed as separate PBS (Portable Batch System) jobs