Hi @ruchi9
Thank you for posting this in Microsoft Q&A.
I understand you want to update cloud and on-premises user's information via PowerShell, and you are curious if there is a command that can update the information of both cloud and on-premises users.
Unfortunately, there is no command to update both cloud and on-premises user's information. Users synced from on-premises Active Directory can only be managed in on-premises Active Directory.
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.
Please remember to "Accept Answer" if answer helped you. This will help us as well as others in the community who might be researching similar questions.