How to create script to add user in Group Admin

I need to create a script to add user as Group Admin in Nextcloud. I’ve done only this, but i don’t know how to put new user in a group admin.

sudo -u www-data /usr/bin/php /var/www/nextcloud/occ  $@

./ group:adduser groupname username 

Can anyone help me with that?