title: Create a class with dynamic property names in powershell
body: <p>I need to be able to have a class in powershell where I can create the names of the properties of that class dynamically. For example,</p>
  
  <pre><code>$binFiles = Get-ChildItem $files -Include *.BIN -recurse
  $binFiles.Name
  </code></pre>
  
  <p>This would print something like:</p>
  
  <p>File1.BIN</p>
  
  <p>ThisFile.BIN</p>
  
  <p>...</p>
  
  <p>FileOther.BIN</p>
  
  <p>I want these file names to be the names of the properties in my class that I will create multiple times.  Is this even possible?</p>
  
  <pre><code>Class myItem {
      [String]$"File1.BIN"
      [String]$"ThisFile.BIN"
      ....
      [String]$"FileOther.BIN"
  }
  </code></pre>