function Get-ConfigurationDataItemValue { [CmdletBinding()] Param( [AllowNull()] $Item, [Parameter(Mandatory=$true)] [String] $KeyName ) if(-not (Test-ConfigurationDataItemContainsKey -Item $Item -KeyName $KeyName)){ return $null } if($Item -is [System.Collections.IDictionary]){ return $Item[$KeyName] } return $Item.$KeyName }