How to change SharePoint users domain

I migrated my SharePoint 2016 from one domain to other ABC to XYZ. But the user which are showing in SharePoint site is still the older one, is their any way that I can change my users domain to new one XYZ with the help of script.

Move-spuser will take huge time and effort.