I was wondering if there was a shorter way to create a multidimentional hashtable array in powershell. I have been able to successfully create them with a couple of lines like so.
$arr = @{}
$arr["David"] = @{}
$arr["David"]["TSHIRTS"] = @{}
$arr["David"]["TSHIRTS"]["SIZE"] = "M"
That said I was wondering if there was any way to shorten this to something like this...
$new_arr["Level1"]["Level2"]["Level3"] = "Test"
Where it would create a new level if it doesn't already exist. Thanks!