if ($RoleDatacenterIsManagementForest -eq 'True') { Add-PSSnapin Microsoft.Exchange.Management.Powershell.CentralAdmin -ea ...

if ($RoleDatacenterIsManagementForest -eq 'True')          {              Add-PSSnapin Microsoft.Exchange.Management.Powershell.CentralAdmin -ea SilentlyContinue;              . $RoleBinPath\CentralAdminSetup.ps1;              $scriptConfigFilePath = [System.IO.Path]::Combine($RoleInstallPath, 'Config\CentralAdminScriptDefinitions.xml');              Create-ProxyScripts -ConfigFilePath $scriptConfigFilePath;              if($RoleDatacenterFfoEnvironment -eq "True")              {                $scriptConfigFilePath = [System.IO.Path]::Combine($RoleInstallPath, 'Config\FfoCentralAdminScriptDefinitions.xml');                Create-ProxyScripts -ConfigFilePath $scriptConfigFilePath;              }          }