Please provide the source for your statement of
Quote:
"quote" is already a mIRC command
since I am unable to find the command in any of my reference material.

Could you be confusing quote with $qt(), which puts quotes around text so that it includes spaces, namely in file and directory names?