You need to surround it with quotes so mIRC recognizes it as a single parameter, /write -ds $+(",$2-,") %ps.file