Read-only users updating records from Scripting block

I’d like to have read-only and commenter users able to edit data using the scripting app. Is this possible? It seems the permissions within the scripting app are tied to the user’s permissions, but are there any APIs to have the scripting block act as someone else?

You could have the script use the REST API to update records. However, I don’t recommend it, because your API key would be exposed to all of the users of the base. If you cannot trust them with editing access to the base, you should not trust them with your API key.