Two ways I can think of off the top of my head would be once you have set all the commands save it as a configuration or once you have it downloaded to a q-50 create a new device use the learn function to set up a new device and learn each key face to face with another q-50
One thing I have learned in this industry. It is easier to pull a wire than it is to push one.