I know I can use netsh advfirewall firewall add rule or wf.msc to create new firewall rules; but when I create a rule this way, it will NOT have a groupName and thus I can't manage multiple rules at the same time.
Is there a way to specify a groupName for some firewall rules?

OK! I know how I should do it now :)
Using
PowerShellandWMI COM-ObjectsI can do what I want!This is a
ps1script I wrote to add firewall rules so that I can connect to mySQL Serverremotely.