Hello,
These tasks are do-able using Google Apps Script which should be wrapped as a time triggered action script. You could set the time schedule to minute, hour, day, or weeks, depending how frequent you will need these tasks executed. The only problem would how to generate the auth token required for accessing these Google Drive, etc. But, I found the way how to make it dynamically generated.
Let's discuss of what I have so you will know I am good in this area.
Best Regards,
Khamid