Select-String -Path "CaseList.log" -Pattern "CaseId" | ForEach-Object {   $a=$_ -split ":"   echo $a[4].trim(" ")   } > CaseList.txt