Links for extracting text between two markers in one file:
From there this looks like an intersting start
$str = Get-Content .\GoPaperLessTShirts_113mails_may2014.txt | out-string $start = $str.IndexOf(“Information Submitted:”)+1 $end = $str.IndexOf(“From:”,$start) $length = $end - $start $str.Substring($start,$length)
https://stackoverflow.com/questions/49001716/extract-lines-between-two-tags