Short version: Is there any "pre" pick method in the script, to utilize it in the scenario when authentication is already remembered in previous interactions, and only the "pick" functionality should be done?
Context
I have multiple MS Accounts for each one there are one or more subscription.
I use PowerShell 7 scripts (Az Module) to automate repeated tasks. Some scripts use one account, others scripts use other account, and I use the all scripts in daily bases. Although Az module remembers which was last account in Connect-AzAccount, unfortunately, in the ad-hoc next script, there is a need to use an other account.
I use Connect-AzAccount in the scripts which pops up the browser dialog. In the browser I can pick the appropriate account, from the multiple offered accounts, what were remembered in the previous logins.
The credentials for the accounts are remembered (btw, I have no idea where, because those credentials are definitely do not show up in the Credential Manager) Anyway, the point is that I do not have to (re)authenticate myself which is fine.
Question
Because the role of interaction this scenario is only to pick an account (and not the authentication itself) I would like to do it without user interaction. I've examined the available switches of Connect-AzAccount neither seems to be work, (-AccountId or -TenandId, etc) for different reasons
I would not like to use other credential mechanism, I mean I would like to utilize those credentials what are exist and allows this workflow, but blocks the automation with the "Pick an Account" browser interaction.