You enter the driver commands in Surveyor Mode and they, like all session commands and rules, will be stored and saved as part of the Session Data, not the Route even if the portal has been placed in a session layer (which is something that I would not advise).
By entering the commands directly into the portal itself also adds them to the Session Data, you don't need to open the Session Editor to do that. Entering driver commands into the Driver Setup Rule in the Session Editor also adds them into the Session Data but does not assign them to a specific portal.