def compose_batch_command_of_script(
    source, destination, script, particle, wait_jobs, suffix
):
    """
    Creates the slurm command of the 'cmd' script

    Parameters
    ----------
    source: str
        Source directory
    destination: str
        Destination directory
    script: str
        Script to be used in the slurm command. Either 'lstmcpipe_utils_move_dir' or 'lstmcpipe_utils_cp_config'
    particle: str
        Particle type for slurm job-naming
    suffix: str
        Suffix to indicate the kind of job
    wait_jobs: str
        Job-id to be used as dependency in the batched slurm command

    Returns
    -------
    batch_cmd: str
        Full slurm batch command ready to batched the script argument

    """
    cmd = f"{script} -s {source} -d {destination}"

    jobe = f"slurm-{particle}_{suffix}.e"
    jobo = f"slurm-{particle}_{suffix}.o"

    batch_cmd = (
        f"sbatch --parsable -p short -J {particle}_{suffix} -e {jobe} -o {jobo} "
        f'--dependency=afterok:{wait_jobs} --wrap="{cmd}"'
    )

    return batch_cmd