a site has a directory structure like this:
https://web.site.net/documents/2018/
where 2018 is the year
my code is like this:
$year = Read-Host -Prompt 'Enter Year'
(Invoke-WebRequest -uri 'https://web.site.net/documents/$year/').Links.href |
Select-string 'https://web.site.net/documents/$year/#'
How do I properly escape, so that the year properly goes into the url?