title: How to group and show multiple directory names with Powershell Get-ChildItem
body: <p>I would like to pass multiple directories, then get a count of how many files were created yesterday in each directory. </p>
  
  <p>This is what I have cobbled together so far: </p>
  
  <pre><code>$DirNames = @('d:\Work\Test1','d:\Work\Test2')
  
  Get-ChildItem $DirNames | Where-Object { $_.CreationTime -ge (get-date).addDays(-1) }  | 
      Group {$_.LastWriteTime.ToString("yyyy-MM-dd")} | Sort Name -Desc | 
      Format-Table Name,Count -auto
  </code></pre>
  
  <p>Current Output: </p>
  
  <pre><code>Name       Count
  ----       -----
  2014-03-25     4
  </code></pre>
  
  <p>It works fine for one directory, but I'm get confused how to show the the directory name in the output listing. The above count is for both directories, what I would like to see is: </p>
  
  <p>Desired Output: </p>
  
  <pre><code>Directory      Date          Count
  ------------   ----------    -----
  D:\Work\Test1  2014-03-25     2
  D:\Work\Test2  2014-03-25     2
  </code></pre>