Make Link List with PowerShell

A script to get a list of links off a given page. I found these two examples to start from:¬†http://normansolutions.co.uk/post/using-powershell-to-check-all-pages-in-website,¬†https://www.petri.com/testing-uris-urls-powershell. clear function get-URLlist($testPage, [int]$linkDepth){ #set the counter [int]$i = 0 #loop thru the list of links, going to sub-pages until the counter equals the given link depth while($linkDepth -gt $i) { foreach($link in $testPage.Links) { […]