Running batch files and then read from files is not a very good solution, but using stdio.dll by DragonZap I think is better,
at least this is my opinion .)
I tried to run sime php scripts, it worked great.
But I think this should be made as a standart function in mIRC