def METHOD_NAME(cmd=None, message=None, debug=False):
    if debug:
        print("calling: {}".format(cmd))
        print("with msg: {}".format(message))
    if not os.path.exists(cmd):
        raise Exception("File not found: {}".format(cmd))
    try:
        subprocess.run([cmd, message], stderr=subprocess.STDOUT)
    except subprocess.CalledProcessError as err:
        print("Running shell command \"{}\" caused "
              "error: {} (RC: {}".format(err.cmd, err.output, err.returncode))
        raise Exception(err)