My Sample Dictionary
$testHashMap = @{
'feature1' = @{
'Audit'@{
'color' = "white"
'price' = 3
}
'Space' = 2
'Usage' = 3
}
'feature2' = @{
'Audit'@{
'color' = "black"
'price' = 3
}
'Space' = 5
'Usage' = 3
}
}
- How can I access directly "color" key's value?
- When I prompt a key it will be search related key and return its value
Expected Output:
Please enter a property: "color"
Color: white in feature1
Color: black in feature2
I want to doing it with recursive, how can I achieve this purpose?