The script is available for download from http://gallery.technet.microsoft.com/How-to-enable-Office-365-c36845c5. 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 is used to help to enable Information Rights-Management service for Exchange Online.
This script requires Windows Azure AD Rights Management Administration Tool. Please download and install the package from Microsoft Download Center. This script cannot work correctly without this package.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery