The Get-HostsContent tool in the tool_networking category is not functional.
In Line 24 we validate the IP address successfully, but Test-IPAddress does not populate the $Matches variable. Thus, we index into a null value and fail:
if (Test-IPAddress -ip $_) {$ip = $Matches[1] ...}