def METHOD_NAME(fips_dir, cmdline):
    if not check_exists(fips_dir):
        log.error("emsdk script not found at '{}', please run './fips emsdk install'".format(get_emsdk_path(fips_dir)))
    emsdk_path = get_emsdk_path(fips_dir)
    emsdk_dir = get_emsdk_dir(fips_dir)
    cmd = '{} {}'.format(emsdk_path, cmdline)
    subprocess.call(cmd, cwd=emsdk_dir, shell=True)