def METHOD_NAME(cmd):
    print(f"Running command: {cmd}")
    process = subprocess.Popen(
        shlex.split(cmd.replace("\\\n", " ")),
        stdout=subprocess.PIPE,
        stderr=subprocess.PIPE,
    )
    stdout, stderr = process.communicate()
    if (rcode := process.returncode) != 0:
        print(f"Error executing command: {cmd}")
        print(stderr.decode())
        sys.exit(rcode)
    return stdout.decode()