title: How to access a Class Defined In A Module From Outside A Module?
body: <p>I cannot access one class from another. Classes are defined in different files.</p>
  
  <pre class="lang-bsh prettyprint-override"><code>#foo.ps1
  Class Foo { static [string]$data }
  </code></pre>
  
  <pre class="lang-bsh prettyprint-override"><code>#bar.ps1
  using module ".\foo.ps1"
  class Bar {
      Bar() {
          [Foo]::data="test" #not working
      }
  }
  [Foo]::data="test" #works
  </code></pre>