It’s worth noting that none of the power shell commands dealing with exchange attribute modifications work under ADFS federated O365 environment. There the only possible approach is to enforce delivery rules if one needs to block an account yet keep its contents.