title: Enumerate file properties in PowerShell
body: <p>I have seen bits of this in other questions, but I am looking for a generic way to write a function that will take a file, and list its properties in such a way that they can be used. I am aware of the function called <code>Get-ItemProperty</code> but it does not list the properties that I am looking for (for example, given a .avi file, it will not tell me the length, frame width, etc).</p>
  
  <p>Am I using the function wrong (all I am doing is: <code>Get-ItemProperty file</code>) or do I have to do this a different way?</p>
  
  <p>I want to be able to say something like $a += $file.Length, or something like that for arbitrary properties.</p>