Note below that we don’t directly loop through the keys, but wrap them in an array statement using @() first (an expression with $() also works), otherwise we will get an error saying that we can’t modify the collection while enumerating. Another way to get around this is to use ...