I am posting this in the Feature Suggestions for a reason.

Scripting doesn't change how /server is handled by mIRC by default. If I type /server some-IRC-server-here, mIRC is going to try connecting through that, not my shell.