Hacker News new | ask | show | jobs
by ygra 3720 days ago
Or a bit shorter:

    ((iwr wttr.in/Brussels).AllElements | ? tagname -eq pre).outerText
We could also wrap it into a function:

    function Get-Weather($Location){((iwr wttr.in/$Location).AllElements | ? tagname -eq pre).outerText}