title: Get-Content from file with -ReadCount and Select -Skip in powershell is not outputting expected result
body: <p><strong>Background</strong></p>
  
  <p>I am constructing a file output from a mixture of static content, dynamic content, and another files content but some of the operation doesn't output content as I expect it to.</p>
  
  <p>The static content is the text <code>@LANGUAGE\r\nENGLISH\r\n\r\n@FIELDS</code>, then I am appending the first header line of some input CSV file, then the text <code>\r\n@$set_name</code>, and finally every line of the input CSV file after the first line.</p>
  
  <p><strong>Powershell code</strong></p>
  
  <pre class="lang-bsh prettyprint-override"><code>    $set_name = "ITEM_SET"
      $inputCSVFile = "C:\temp\in\$set_name.csv"
      $outputTXTFile = "C:\temp\out\$set_name.txt"
      $staticContent = "@LANGUAGE`r`nENGLISH`r`n`r`n@FIELDS"
      $dynamicContent = "`r`n@$set_name"
  
      # output content to file
      $staticContent | Out-File $outputTXTFile
      Get-Content $inputCSVFile | Select -First 1 | Out-File $outputTXTFile -Append
      $dynamicContent | Out-File $outputTXTFile -Append
      # content from the next line is not appearing in the output file
      Get-Content $inputCSVFile -ReadCount 1000 | Select -Skip 1 | Out-File $outputTXTFile -Append
  </code></pre>
  
  <p><strong>Result</strong></p>
  
  <p>The output file has the <code>@LANGUAGE...</code> heading content, the 1st line of the CSV file with the field headings <code>A1A_A1,A1A_A2,A1A_A3,A1A_N,A2A_A1,...</code> and the line with dynamic content <code>@ITEM_SET</code>, but I'm missing the data from the rest of the input CSV file <code>0,0,0,1,0,...</code>.</p>
  
  <p><strong>Other Information</strong></p>
  
  <p>The input CSV files range from a couple of lines to thousands of lines.
  I've tried removing the last <code>Out-File</code> from the end of the pipeline on the offending line of the script and the console output is as expected.
  I've tried removing the <code>Select -Skip 1</code> from the middle of the pipeline on the offending line of the script and the file contents is output as expected.
  I've tried removing the <code>-ReadCount 1000</code> from the <code>Get-Content</code> cmdlet on the offending line of the script and the file contents is output as expected.</p>
  
  <p><strong>Question</strong></p>
  
  <p>Why can I not have all three components of that line of scripting and get the output I expect?</p>