Get-AzureADUser -ObjectId UPN | Select-Object UserprincipalName,@{N="PasswordNeverExpires";E={$_.PasswordPolicies -contains "DisablePasswordExpiration"}}
Set-AzureADUser -ObjectId UPN -PasswordPolicies DisablePasswordExpiration