if($MSExchangeAntimalwareService -ne $null -and $MSExchangeAntimalwareService.StartMode -ne "Disabled" -and $RoleStartTransportService) ...