This script can set calendar permission in Office 365 Exchange Online. You can set permission, grant permission and revoke permission on one or multiple calendar folders by using this script.
Currently, Add-MailboxFolderPermission only accepts single ID as the value of Identity parameter. It requires user to provide a full folder path, for example, “userid\Calendar\Calendar 01”. It’s inconvenient if you want to set permission on two or more calendar folders.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery