Check out Mozex. (Make sure to install the development version; the regular version is ancient.) It seems to do what you want. Note that it seems that the way to get the UI to accept your external command is to flip to another tab and back. (I've also been pressing return in the entry box for safe measure.)
_________________________
Bitt Faulk