title: How can I join the result of `ls` as a char separated string in PowerShell?
body: <p>I have a folder containing the following files:</p>
  
  <ul>
  <li>File_1.txt</li>
  <li>File_2.txt</li>
  <li>AnotherFile.txt</li>
  </ul>
  
  <p>I want to be able to achieve an output of: <code>File_1.txt - File_2.txt</code></p>
  
  <p>I have tried running:</p>
  
  <p><code>ls .\file*.txt | %{$_.Name}</code></p>
  
  <p>which returns what I want except on separate lines, how can I join the files returned by a given character (<code>-</code> in this example)?</p>
  
  <p>Any help is appreciated.</p>