The script is available for download from http://gallery.technet.microsoft.com/How-to-create-GALs-based-d1026173. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This script will create address lists by domain suffix in Office 365 when this tenant has multiple domains.
This script is to help Exchange Administrators to create address lists by domain suffix in Office 365 when this tenant has multiple domains.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery