Functions/ProcessHashTable.ps1
#dont' think this is needed anymore in PowerShell V3+ Function ProcessHashTable([parameter(Mandatory)][hashtable]$ht) { If($ht) { ForEach($key in $ht.keys){ If($ht.$key.GetType() -is [PSObject]) { $ht.$key = ([PSObject]($ht.$key)).BaseObject } } } } |