def METHOD_NAME(cmd, cwd=None, close_fds=False, wait_to_finish=True):
    proc = subprocess.Popen(
        cmd.split(" "),
        stdout=subprocess.PIPE,
        stderr=subprocess.PIPE,
        cwd=cwd,
        close_fds=close_fds,
    )
    if not wait_to_finish:
        return proc
    stdout, stderr = proc.communicate()
    if stderr:
        raise Exception(stderr)
    logger.info(f"Excecuted {cmd}")
    return proc