title: du in PowerShell?
body: <p>How can I get a <a href="https://en.wikipedia.org/wiki/Du_%28Unix%29" rel="noreferrer">du</a>-ish analysis using PowerShell? I'd like to periodically check the size of directories on my disk.</p>
  
  <p>The following gives me the size of each file in the current directory: </p>
  
  <pre><code>foreach ($o in gci)
  {
     Write-output $o.Length
  }
  </code></pre>
  
  <p>But what I really want is the aggregate size of all files in the directory, including subdirectories. Also I'd like to be able to sort it by size, optionally. </p>