Are you supplying the actual name of the camera object to the MEL command you want to query it with ? In MEL the command setup is usually "melCommand <parameters> targetObjectName". For example "camera -q -hfv persp" seems to work just fine, as well as "xform -q -t pSphere1".