Thanks for posting your question in the Microsoft Q&A forum.
I hope this script helps you:
Get-AzureADUser -ObjectID "username@domain" | Select-Object DisplayName, UserPrincipalName
If you want to retrieve for all user you can use this script:
$tid = 'xxxxx-xxx-xxx-xxx-xxxx' # Replace with your tenant ID
Connect-AzureAD -TenantId $tid
$allUsers = Get-AzureADUser -All $true
$userInfo = $allUsers | Select-Object DisplayName, AccountEnabled, UserPrincipalName
$userInfo | Export-Csv ./AADusers.csv -NoTypeInformation -Append
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **