Do you want a separate email for each user that the task has touched or a summary email containing all users? Sending separate emails is better from the point of view of performance and will require only a slight modification of the script.
If you want a summary email for all users, that can also be done, however you need to keep in mind that you'll need to perform all actions on all users within a single script. That is, you'll need a script that will find all user accounts that need to be cleaned up, perform the necessary operations on each of them, and then send a summary report. This will require binding to each user within the script, that can take quite a lot of time if there are many users that you need to clean up.
Which of the options suits your needs best?