It's not possible with the current COM support, because mIRC will not let us access the properties of the newly created 'Link' object through $com.

What we can do is making a script that creates a customized, external .vbs file similar to yours and runs it. A nicely coded script by qwerty can be found here.