You may not distribute the mIRC installer or the mIRC product itself (mirc.exe) with your products (your script, or whatever it may be), it's that simple. There is no debating it, there is no trying to get around it with technicalities.

It is illegal to include mirc.exe in your script, but I doubt Khaled would enforce it if you did this for your own personal script that you only gave to friends.