This script enables you to export Active Directory users with duplicated user principal names. After correcting the attributes for these users, you can use this script to import them to your on-premises Active Directory.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery
Bad links to Script Download and gallery
As Andrew said 2 years ago, the links in your acticle are broken. they do not link to the correct script!