When creating your sockets you can simple use a prefix.
Example, say you're running 16 sockets, well just prefix each socket with "quickCommand.<socket_name>"
Then when running a script I think you can try /sockwrite -nt quickCommand.* using the wildcard at the end of the prefix. Therefore mIRC will send to all sockets with the prfix quickCommand. in their name.
I'm not totaly sure but I believe that works. (I havent used sockets for awhile