When mIRC execute a command, if it's not a built-in command or a custom alias, the command is sent to the server, assuming it might be an IRC command, and in this case, when the command is not recognized by the IRC server, it replies back with a raw 421 UNKNOWN COMMAND, there is nothing mIRC can do to tell you which script/line number executed this command.