title: Adding text to list output
body: <p>I need to format, add text to, a list of files I am getting using Powershell.  I can simply use the following script to get my list of files:</p>
  
  <pre><code>Get-ChildItem("c:\path") | where {$_.Length -eq 0} | select name
  </code></pre>
  
  <p>This works well returning a list of file names:</p>
  
  <blockquote>
    <p>file1.txt<br>
    file2.txt<br>
    file2.txt    </p>
  </blockquote>
  
  <p>What I am trying to do is add additional text to the output so it looks more like this:</p>
  
  <blockquote>
    <p>'file1.txt',<br>
    'file2.txt',<br>
    'file3.txt',   </p>
  </blockquote>
  
  <p>This I am finding to be more difficult than it should be.  I tried this:</p>
  
  <pre><code>$l = Get-ChildItem("c:\path") | where {$_.Length -eq 0} | select name | foreach($_) { "'$_,"}
  </code></pre>
  
  <p>This doesn't quite do it, as the field name is added to the output:</p>
  
  <blockquote>
    <p>'@{Name=file1.txt}.Name',<br>
    '@{Name=file2.txt}.Name',<br>
    '@{Name=file3.txt}.Name',   </p>
  </blockquote>
  
  <p>Is there a way to format this better or remove the object information?  </p>