Manage user via script (admin a group)

using OCC i can add a user and join him to a group with the “-g” parameter
what about the administration of groups?

I want to leave the admin rights for some groups to a lot of user (for a lot of groups)
what can i do using scripting?
thank you