try { if($RoleDatacenterIsManagementForest -eq "True") { # Load Exchange Snapin Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 ...

try          {            if($RoleDatacenterIsManagementForest -eq "True")            {              # Load Exchange Snapin              Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 -ErrorAction SilentlyContinue;                            $WorkFlowTargetForest = (Get-ADDomain).DNSRoot              $groupName = "AppLocker Exemption $WorkflowTargetForest"              $group = Get-RoleGroup $groupName -ErrorAction SilentlyContinue              if($group -eq $null)              {                New-RoleGroup $groupName -ErrorAction SilentlyContinue              }            }          }          catch          {           Write-Error $_          }