What is the best way to load html files from a file system, parse it, manipulate the DOM then save it back to a file?
I am trying following code but is does not seem to work because the type is Microsoft.PowerShell.Commands.WebResponseObject and not the Microsoft.PowerShell.Commands.HtmlWebResponseObject which provides for the $html.ParsedHtml property.
$uri = “C:\temp\EventLog.html”
$html = Invoke-WebRequest -Uri $uri
$html | Get-Member