1 2 3 4 5 6 |
$nombremoroso='apellidos y nombre del muy moroso' $nombremorososinespacios=$nombremoroso.Replace(' ','-') $urlmoroso='https://www.empresia.es/persona/'+$nombremorososinespacios $web=Invoke-WebRequest $urlmoroso $web.AllElements | Where id -eq "ListaRelaciones" | %{$_.innertext} |