I've used the Invoke-WebRequest to pull a page into a variable $content. I then assign the results of $content.ParsedHtml.getElementsByTagName to another variable $x. $x[1] returns several lines of HTML. However I am unable to parse the lines of HTML into an array.
$content = Invoke-WebRequest -Uri $Uri
$x = $content.ParsedHtml.getElementsByTagName('TR')
$x[1].outerHTML
If I write the HTML out to a text file I can then read it back into an array but I was hoping to skip that step. If anyone has any suggestions it would be most appreciated.