KBE Powershell Modules
You may need to run:
This will add the Active Directory Module to the Local machine to run those commands to get it on that machine at the beginning of your PowerShell Script as it is a new machine.
The other option is to run it as a remote session on another machine by using:
Enter-PSSession -ComputerName (Domain Controller) or other system with the Active Directory PowerShell module loaded on it:
Hope that helps,