from pathlib import Path


def _name(fds_file: Path) -> str:
    """Return the name of the .pbs script."""
    if not fds_file.is_file():
        raise TypeError(f"{fds_file} is not a file.")
    return f"#PBS -N {fds_file.stem}"