Google Sheets

Make a copy of the Google Sheet. Open the Commands sheet(tab) and edit the commands as required. Generally this will be minimum of;-

Email (Delete Message)

Delete an email, using the Message ID, from a list of users, a group or an OU.

https://docs.google.com/spreadsheets/d/18K74uMen_zxD20Qe8pp8V64vqRCrni9qdziYwyDyrcM/copy

File Ownership

Get the file owner from the FileID. The add users and/or change ownership.

https://docs.google.com/spreadsheets/d/1f98oPc9UxVKoZLZSGc430qARV5iAo77vHpr59NrrAZQ/copy