Added a modCheck function to determine if the Active Directory Module for Powershell has been loaded