Hello, is there a way to let mIRC echo stuff to a command prompt?

For example, mirc.cmd
If somebody says anything, it echo's to mirc.cmd:

00:00:00 00/00/0000 Nick says: Hello, how are you?


(time/date/nick/msg)


Squee whenever a squee squee's. Squee whenever a squee does not squee.