title: Use PowerShell to generate a list of files and directories
body: <p>I'm writing a PowerShell script to make several directories and copy a bunch of files together to "compile" some technical documentation.  I'd like to generate a manifest of the files and directories as part of the readme file, and I'd like PowerShell to do this, since I'm already working in PowerShell to do the "compiling".</p>
  
  <p>I've done some searching already, and it seems that I need to use the cmdlet "Get-ChildItem", but it's giving me too much data, and I'm not clear on how to format and prune out what I don't want to get my desired results.</p>
  
  <p>I would like an output similar to this:</p>
  
  <pre><code>Directory
       file
       file
       file
  Directory
       file
       file
       file
       Subdirectory
            file
            file
            file
  </code></pre>
  
  <p>or maybe something like this:</p>
  
  <pre><code>+---FinGen
  |   \---doc
  +---testVBFilter
  |   \---html
  \---winzip
  </code></pre>
  
  <p>In other words, some kind of basic visual ASCII representation of the tree structure with the directory and file names and nothing else.  I have seen programs that do this, but I am not sure if PowerShell can do this.</p>
  
  <p>Can PowerShell do this?  If so, would Get-ChildItem be the right cmdlet?</p>