private GhidraScript getScriptInstance(ResourceFile scriptFile, ConsoleService console) {
		String scriptName = scriptFile.getName();
		GhidraScriptProvider provider = GhidraScriptUtil.getProvider(scriptFile);
		if (provider == null) {
			console.addErrorMessage("",
				"Could not find a compatible script provider for: " + scriptName);
			return null;
		}
		try {
			return provider.getScriptInstance(scriptFile, console.getStdErr());
		}
		catch (GhidraScriptLoadException e) {
			console.addErrorMessage("", "Unable to load script: " + scriptName);
			console.addErrorMessage("", "  detail: " + e.getMessage());
		}

		// show the error icon
		scriptTable.repaint();
		return null;
	}
@return non-system bundle paths from the scripting bundle host
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/script/GhidraScriptComponentProvider.java