Have you thought of grouping them? Or is this not working and the reason why you’re raising this post?
for your script, your service is incorrect, it should be service: script.turn_on
alternatively, have you thought of creating an automation that would have multiple actions (namely one for each light with delays if needed). Only question is what is triggering the automation/script? you’d need an input or state to monitor example input_boolean.office_lights (try and stick to lowercase)
The switch template will take the status or attribute of another entity and create a new switch.
What you’re trying to achieve if I understand well is to create a new switch to control all your receivers.
If so an input_boolean would work, then you just need to create an automation which triggers on the state of that input.
I think you’re over-complicating it.
The first thing to know if if indeed your individual switches do return a status. If so you can simply group them together.
Here is an example of such an input that I have on my setup (I’ve added a delay for you):
Then create a similar automation for when you turn the switch off.
The only remaining question is:
Do each of your controlled socket return a status when changed? If so how do you want the other lights and your input_boolean to behave if you switch all your office lights but then switch just one lamp off?
You’ll probably need to create more automations to handle this