function Get-ConfigurationDataMapValue { [CmdletBinding()] Param( [Parameter(Mandatory=$true)] $Map, [Parameter(Mandatory=$true)] [string] $Key, [AllowNull()] $DefaultValue = $null ) if(-not (Test-ConfigurationDataMapContainsKey -Map $Map -Key $Key)){ return $DefaultValue } return $Map[$Key] }