title: Merging multiple CSV files using powershell
body: <p>I have been trying to merge a few CSV files into just one file using PowerShell. I have done this plenty of times using batch files without an issue, but I have not been able to do it using PowerShell.</p>
  
  <p>This is the code I am using:</p>
  
  <pre><code>Get-ChildItem C:\Users\kz280\Desktop\Script_Development\Test_Logs\*.csv |
  ForEach-Object {Import-Csv $_} | 
  Export-Csv -NoTypeInformation C:\Users\kz280\Desktop\Script_Development\Test_Logs\MergedCsvFiles.csv
  </code></pre>
  
  <p>I have also tried 4 or 5 more similar/proven codes I found in Stack Overflow with no success. I just started playing with PowerShell so I am unsure if I am doing something wrong. I have already created/ran a few more scripts without issues.</p>
  
  <p>The error I am getting is that the script runs indefinitely. Besides that, it is only merging three columns. The rest of the 50 columns are not showing up in the final CSV files.</p>
  
  <p>How can I combine all the source files into a single file?</p>