Powershell
#------------------------------------------------------------------------------# Declare Function to identify if Quest AD snapins are loaded already & load if not.#------------------------------------------------------------------------------FunctionLoadQuestSnapin{$LoadedSnapins=pssnapin$Questloaded=$Falseforeach($Linein$LoadedSnapins){if($Line.name-eq"Quest.ActiveRoles.ADManagement"){$QuestLoaded=$True}}if($Questloaded-eq$False){Add-PSSnapinQuest.ActiveRoles.ADManagement}}#------------------------------------------------------------------------------#------------------------------------------------------------------------------# Declare Function to Identify whether the most recent User report#------------------------------------------------------------------------------FunctionIdentifyPreviousDateFile{#Check...