title: Powershell get-childitem output formatting
body: <p><strong>How can I change the formatting of powershell output?<br>
  I am running this:</strong></p>
  
  <pre><code>cgi -Recurse K:\AppData\*.* -Filter *.model | ? {$_.LastWriteTime -gt (Get-Date).AddDays(-6)} | sort LastWriteTime -descending &gt;&gt; C:\AAA\result.txt
  </code></pre>
  
  <p><strong>The result I got is in this format:</strong></p>
  
  <pre><code>Directory: K:\AppData\
  
  
  Mode                LastWriteTime     Length Name                                                                                                                                                                                                  
  ----                -------------     ------ ----                                                                                                                                                                                                  
  -a---        13/02/2014  11:29 AM    7269129 20-300_3001_REV02_ECR4431.CATPart 
  -a---        13/02/2014  11:29 AM    7269129 20-300_3001_REV02_ECR4431.CATPart 
  -a---        13/02/2014  11:29 AM    7269129 20-300_3001_REV02_ECR4431.CATPart
  </code></pre>
  
  <p><strong>How can I change the output format to this :</strong></p>
  
  <pre><code>LastWriteTime           Name                                  Directory
  -------------           ----                                  -----
   13/02/2014  11:29 AM   20-300_3001_REV02_ECR4431.CATPart     K:\AppData\
   13/02/2014  11:29 AM   20-300_3001_REV02_ECR4431.CATPart     K:\AppData\
   13/02/2014  11:29 AM   20-300_3001_REV02_ECR4431.CATPart     K:\AppData\
  </code></pre>