Script group all switches with specific prefix

Have a look at the templates here: