You need 2 files, the PowerShell script, and the CSV file, which I will have links for at the bottom.
Put the two scripts in C:\Users\Administrator and open up PowerShell, and drag the script into it.
The script will load the AD Module ("Import-Module activedirectory" )
You just have to change the CSV file to match your settings.
Also, make sure "Active Directory Web Services" service is started, open up services.msc from Start-->Run, and start the service if it doesnt start, otherwise you'll get an error like: