The function Grant-ADDTDGRights.ps1 is writing and committing each ACL separately, which slows down the tool significantly.
It should take all permissions for an OU, check which permission is already set, and add or remove the "managed" permissions in a single commit operation.
Specifically, if the script is used multiple times, it must not try to set already existing ACLs.