def METHOD_NAME(domain: virDomain, desktop_id: str, cmds):
    """
    Execute a list of commands in the specified domain
    :param domain: domain where the commands are going to be executed
    :param cmds: commands that are going to be executed
    """
    failed = True
    cmd = 0
    command_status = {}
    while failed and cmd <= len(cmds) - 1:
        command_exec = cmds[cmd]
        try:
            logs.workers.error(command_exec)
            command_exec_response = qemuAgentCommand(
                domain, json.dumps(command_exec), 30, 0
            )
            failed = False
            command_status = {
                "execute": "guest-exec-status",
                "arguments": {
                    "pid": json.loads(command_exec_response)
                    .get("return", {})
                    .get("pid"),
                },
            }
        except libvirtError as error:
            logs.workers.error(
                f"libvirt error trying to execute command in desktop {desktop_id} "
                f"with: {error}"
            )
        cmd = cmd + 1
    print(command_status)
    if command_status != {} and not command_status.get("exitcode"):
        return None
    return command_status