I have a bastion/jump box providing WinSCP for users to carry out transfers to secured hosts. This is integrated into a privileged access management (PAM) service. I want to automate some behaviours at run time, after the authentication has completed (this is handled by the PAM service) and the application becomes interactive.
While I can define the required actions in a WinSCP extension, I could not see anywhere in the documentation discussing how to run extensions automatically. A fallback would be to provide the user with a button to click on rather than having to dig through the menus to find the extension, but again I don't see this in the docs.
How can I run an extension automatically at the right time?