OsGrantScriptPermissions