<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_command(command: List[str], fname: str):
 """ Format and print command to file. :param command: Command in args list form. :param fname: File name to write out. """

    with open(fname, "w", encoding="utf-8") as out:
        print(" \\\n".join(command), file=out)