function Test-ConfigurationDataItemHasKeys { [CmdletBinding()] Param( [AllowNull()] $Item, [Parameter(Mandatory=$true)] [String[]] $KeyNames ) foreach($KeyName in $KeyNames){ if(-not (Test-ConfigurationDataItemContainsKey -Item $Item -KeyName $KeyName)){ return $false } } return $true }