def METHOD_NAME(command: str | None, cwd: Path, env: dict[str, str]) -> None:
    log.debug("using Windows command prompt")
    if not command:
        cd_command = subprocess.list2cmdline(["cd", "/d", str(cwd)])
        subprocess.Popen(["cmd", "/K", cd_command], env=env)
        return
    real_command = [str(utils.python_executable), str(run_script), str(cwd), command]
    if not utils.running_pythonw:
        # windows wants to run python in the same terminal that
        # Porcupine was started from, this is the only way to open a
        # new command prompt i found and it works :) we need cmd
        # because start is built in to cmd (lol)
        real_command = ["cmd", "/c", "start"] + real_command
    subprocess.Popen(real_command, env=env)