code: def cmd_nmake(
      makefile: str | None = None,
      target: str = "",
      params: list[str] | None = None,
  ) -> str:
      params = "" if params is None else " ".join(params)
  
      return " ".join(
          [
              "{nmake}",
              "-nologo",
              f'-f "{makefile}"' if makefile is not None else "",
              f"{params}",
              f'"{target}"',
          ]
      )
  
imports: from __future__ import annotations
  import argparse
  import os
  import platform
  import re
  import shutil
  import struct
  import subprocess
label_desc: Use image node_id 8 for calling a global function with example usage: cmd_nmake(makefile, target, params) and returns: str