Optional script to be executed on the controller before the actual connection method is invoked for connecting to the agent.