Showing Modal boxes from powershell

Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation

How do I display a form that is prompted for a user from within a page?

Connect-AzureAD for example pops up a login form within Powershell. How do I display that to the user?


I know normally I can wrap the creds up but when using MFA that is not possible.