Just post this code to your alias section.
Some servers restrict number of queries at fixed interval, so use <delay> parameter.
If windows appear but don't close try to check Options->diplay->options->windows->[query] and [open windows on top by defaults]
if there are better mass query script(for example without opening windows, or any questions please post it here or mail to:
JustasM@tut.byThis is a help forum, not a place to host scripts. For that, feel free to submit your snippets to www.mirc.net / www.mircscripts.org / www.hawkee.com / etc and let them evaluate it.