Working with group changes using Powershell

Hi,

Are there any example scripts floating around that show how to interact with changes made to groups using the script modules?

I am fairly familiar with working with User objects and "onPreCreate", "OnPostCreate" etc, but I don't have any examples of working with groups.

I am working on an Integration with Microsoft Teams where I would like to have a workflow trigger a Powershell script that sends alerts when a group is modified. Inside the notification it would have the group name that was changed, whether it was an add or delete, and the list of users that were added/modified.

If anyone knows of any examples floating around that they could share that would be awesome!

Cheers,

Todd