title: getting the latest download url and version of a software from a website with powershell
body: <blockquote>
  <p>I want to take the take the latest version of the software and check with the version that is installed on system if it is newer install the new version .</p>
  </blockquote>
  <p>''' $web = Invoke-WebRequest -Uri &quot;https://www.webex.com/downloads/jabber/jabber-vdi.html&quot;
  ( $latest = $web.AllElements | Where-Object {$_.TagName -eq &quot;li&quot;} | Select-String &quot;Jabber Windows client&quot; | Select -first 1 )'''</p>
  <blockquote>
  <p>for taking the version number and url I've wrote these but does not work</p>
  </blockquote>
  <p>''' ( $latestversion = $latest.Context | Select-String -pattern &quot;\d\d.\d&quot;)
  ( $downloadUrl=$latest.Context | Select-String -pattern &quot;\w.msi&quot; )'''</p>
  <blockquote>
  <p>also I have tried this way but does not work</p>
  </blockquote>
  <p>'''$latestversion = $latest.links.href '''</p>