Tried typing it in the script editor and dragging it from there? If everything else fails, you can just execute the script by pressing enter after you've typed refplanes; in the command line...