DSCResources/VE_XD7Common/Citrix.Common.Commands.psm1

<#
    Wrapper for loading the Citrix.Common.Commands snapin as a module that can be loaded at the
    global scope. This avoids 'An item with the same key has already been added' errors when loading
    PowerShell snap-ins with the PsDscRunAsCredential parameter in PowerShell v5 (and later).
#>


$snapinName = 'Citrix.Common.Commands';
if ($null -eq (Get-PSSnapin -Name $snapinName -ErrorAction SilentlyContinue))  {

    Add-PSSnapin -Name $snapinName -ErrorAction Stop;

}