By doing this programmatically you can give multiple users or group(s) the right to add or remove users from an AD group. If you do this in ADUC you can only give the user you set as ‘Managed by’ the permissions.
A good script to verify your SCCM client
How to use where-object match one of multiple values from an array. You do not have to use an array. You can just type all the values in a string separated with | between each word(s). Note : Do not have any spaces before or after the pipe character, it is an exact match.