Resolve the error when using Get-Content with URLs by fetching web pages via Invoke-WebRequest and extracting text with regular expressions.