title: How to get the string name which has failed consecutively for 3 days in powershell
body: <p>I have data in a text file with the following columns.</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Date</th>
  <th>StringName</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1/1/2021</td>
  <td>ABC</td>
  </tr>
  <tr>
  <td>2/1/2021</td>
  <td>ABC</td>
  </tr>
  <tr>
  <td>3/1/2021</td>
  <td>ABC</td>
  </tr>
  <tr>
  <td>1/1/2021</td>
  <td>XYZ</td>
  </tr>
  <tr>
  <td>2/1/2021</td>
  <td>XYZ</td>
  </tr>
  <tr>
  <td>3/1/2021</td>
  <td>ABC</td>
  </tr>
  <tr>
  <td>4/1/2021</td>
  <td>ZZZ</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>I want only the StringName in the output which has consecutively failed for 3 days or more &amp; ignore the rest. In the above data, ABC has failed for 1 2 3 days consecutively in Calendar month January. So the output should be ABC. If there are more than one stringName then the output should be like below</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>StringName</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>ABC</td>
  </tr>
  <tr>
  <td>XYZ</td>
  </tr>
  </tbody>
  </table>
  </div>