title: Powershell to get metadata of files
body: <p>I am looking to get metadata of a specified file (or directory of files). I am specifically looking for "Program Description" on .WTV files.  </p>
  
  <p>I found code, but it doesn't list that attribute.  Some of that code looks like this:</p>
  
  <pre><code> foreach($sFolder in $folder) 
    { 
     $a = 0 
     $objShell = New-Object -ComObject Shell.Application 
     $objFolder = $objShell.namespace($sFolder) 
  
     foreach ($strFileName in $objFolder.items()) 
      { FunLine( "$($strFileName.name)") 
        for ($a ; $a  -le 266; $a++) 
         {  
           if($objFolder.getDetailsOf($strFileName, $a)) 
             { 
               $hash += @{ ` 
                     $($objFolder.getDetailsOf($objFolder.items, $a))  =` 
                     $($objFolder.getDetailsOf($strFileName, $a))  
                     } #end hash 
              $hash 
              $hash.clear() 
  </code></pre>
  
  <p>I can see that attribute in File explorer.</p>