You can use the /showmirc command to manipulate the mIRC main window.

To minimize to tray and lock, /showmirc -tl

This will ask you for a password if you haven't entered one before. You can't specify the password via a command.

-genius_at_work