def METHOD_NAME(data: ItemData, parent: Folder) -> Script:
    """
    Create a script from data, reading the actual content from a python file in the predefined_user_scripts directory.
    Place the script into the parent folder.
    """
    content_path = pathlib.Path(__file__).parent / "predefined_user_scripts" / (data.content + ".pyi")
    logger.debug("Creating Script: name={}, path_to_content={}".format(data.name, content_path))
    with open(str(content_path), "r", encoding="utf-8") as source_file:
        source_code = source_file.read()
    item = Script(data.name, source_code)
    if data.hotkey:
        item.set_hotkey(*data.hotkey)
    for abbreviation in data.abbreviations:
        item.add_abbreviation(abbreviation)
    item.set_modes(data.trigger_modes)
    if data.window_filter:
        item.set_window_titles(data.window_filter)
    item.show_in_tray_menu = data.show_in_tray_menu
    parent.add_item(item)
    item.persist()
    return item