It is recommended that Set-ExecutionPolicy -executionPolicy Bypass be run to prevent any unwanted prompts. At the very least, Set-ExecutionPolicy -executionPolicy Unrestricted will have to be run, as the code is not signed.

This script must also be run on a Active Direction Domain Controller to ensure all the proper PowerShell pieces are in place.

Read more about the scripts options here.