Using the Automation platform, the login to the active application can easily be triggered by calling the related standard command "LoginActiveApplication" from any one of your plugins. But for some use cases, a more customizable, programmatic login may be needed.