Iterate over static properties of a class
<p>To access a static method, we use</p>

<pre><code>[namespace.ClassName]::MethodName()
</code></pre>

<p>and for static properties we use</p>

<pre><code>[namespace.ClassName]::Property
</code></pre>

<p>How do I iterate through all the static properties inside this class? </p>

<pre><code>$list = [namespace.ClassName] | Get-Member -Static -MemberType Property
</code></pre>

<p>Returns me a list of all the static properties, but how do I use it, i.e access its value.
If I want to pass the variable to a method, how do I do so? <code>$list[0]</code> does not work.</p>