#!/bin/usr/env pwsh [xml]$urls = Get-Content $args[0] echo ($urls.urlset.url | % {$_ | Select-Object -Property loc -ExpandProperty loc})