Convert slurm scripts to perl module