
Microsoft.Apm.createSession, where you pass a templateName, sessionContext, and focus behavior. There is also Microsoft.Apm.createTab for opening tabs within the focused session. createSession method (app profile manager) JavaScript API Reference | Microsoft Learn