def METHOD_NAME(path, content, mode=DEFAULT_MODE):
    """
    Creates a new script stored in the file system.
    :param path: the script file name.
    :param content: the script content.
    :param mode: set file mode, default to 0775.
    :return: the script path.
    """
    scpt = Script(path, content, mode=mode)
    scpt.save()
    return scpt.path