def METHOD_NAME(args):
    cmd_str = ' '.join(quote(x) for x in args)
    log("running: %s" % cmd_str)
    # https://github.com/AcademySoftwareFoundation/rez/pull/659
    use_shell = ("Windows" in platform.system())
    p = Popen(
        args,
        stdout=subprocess.PIPE,
        stderr=subprocess.PIPE,
        shell=use_shell,
        text=True
    )
    stdout, stderr = p.communicate()
    return stdout, stderr, p.returncode