You could try this ...
Say your seven groups were named in the editor as follows:
MyGrp1,MyGrp2,MyGrp3,MyGrp4,MyGrp5,MyGrp6,MyGrp7.
In your script that calls the tracking script, stick them all in array like this :
biggroup = [MyGrp1,MyGrp2,MyGrp3,MyGrp4,MyGrp5,MyGrp6,MyGrp7]
Then call like this [biggroup, followthis] call "BigGroupTrack.sqs"
BigGroupTrack.sqs might look like this ...
_biggroup = _this select 0
_followme = _this select 1
;Now loop through all groups in the biggroup
_total = count _biggroup
_i = 0
#loop
_grp = _biggroup select _i
{your code to make them follow _followme goes here}
_i = _i +1
if (_i < _total) then {goto "loop"}
So you're not really making a proper group, because as you know there is a 12 unit limit, but your making a sort of a virtual group for the purpouses of your tracking script.