If I create a hashtable, and then try to query it by key, it doesn't retrieve them. This is because the keys aren't actually the individual keys, they're instead something called a "KeyCollection". How do I get the actual key?
$states = @{1=2} #This creates the hashtable
$states.keys[0] #This returned 1
$States.get_item($states.keys[0]) # This returned nothing (expected 1)
$States.keys[0].getType() #This returned "KeyCollection" as the Name.
Can someone explain to me why it's "KeyCollection" and not 1, and how to get to the String?