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/1-0pL5kcnklsvC_w3JcG1sCTnfOtsfUg9FGpjNaUHC9w/copy

File Ownership

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

https://docs.google.com/spreadsheets/d/1lF4ZF0Odntta4UBOcLLcFzguS8aA-U3pC_UEvViS8hY/copy