I'd like to store a hashtable in an environmental variable--is that possible in Powershell?
Here's how I'm testing this:
$env:test = @{}
$env:test
$env:test|gm
And getting confused, because output is:
System.Collections.Hashtable
TypeName: System.String
Name MemberType Definition
---- ---------- ---------- Clone Method System.Object Clone()
CompareTo Method int CompareTo(System.Object value), int CompareTo(string strB) ...
... So when I return $env:test directly, I get 'Hashtable', but when I pipe it to get-member, system.string is returned. Can someone please explain this behaviour?