To generate SLURM script according to user's input