$user = Read-Host "Enter UPN" Get-MgUserAuthenticationTemporaryAccessPassMethod ` -UserId $user | Format-List ` CreatedDateTime, StartDateTime, LifetimeInMinutes, IsUsable, IsUsableOnce, MethodUsabilityReason