Grouping geometries

I have made a skript where I spread a geometry multiple times on a surface, but it only works with a single solid. I use it for a boolen diffrence later on, so i will have a nice tamplate cut out of my object.

So my problem is that I´m not able to make it work with a tamplate that contains mutiple objects.

I need to define a number of objects as a fix constellation, so that the skipt handle them as one objekt.

Thank you for your help