title: passing variables into Invoke-WebRequest -uri argument powershell
body: <p>a site has a directory structure like this:</p>
  
  <p><a href="https://web.site.net/documents/2018/" rel="nofollow noreferrer">https://web.site.net/documents/2018/</a></p>
  
  <p>where 2018 is the year</p>
  
  <p>my code is like this:</p>
  
  <pre><code>$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/#'
  </code></pre>
  
  <p>How do I properly escape, so that the year properly goes into the url?</p>