I use the functions in this module for many automated updates for my UniFi Security Gateway Firewall Rules. Mostly in combination with my own Get-Office365Endpoints function. It helps me to keep my own Firewalls up-to-date with the latest information from Microsoft.
Take a look and give it a try! Any Feedback is appreciated! Please open a GitHub issue as Bug report if you find something not working. On the other hand, open a GitHub issue as Feature request if you think something is missing.
Maybe I publish this to the PowerShellGallery in the future, but this also depends on the feedback I will get.