title: Can I upgrade PowerShell versions from within PowerShell?
body: <p>I have a Windows 7 SP1 box, running PowerShell version 2 (which shipped with it). Now I need to upgrade to either version 3.0 or 4.0, in order to take advantage of some of the newer cmdlets.</p>
  <p>In search of answers, I came across this great tutorial: <a href="http://blogs.technet.com/b/heyscriptingguy/archive/2013/06/02/weekend-scripter-install-powershell-3-0-on-windows-7.aspx" rel="nofollow noreferrer">http://blogs.technet.com/b/heyscriptingguy/archive/2013/06/02/weekend-scripter-install-powershell-3-0-on-windows-7.aspx</a>.</p>
  <p>This tutorial was fine, but I was surprised to not see any mention of a command line/cmdlet option for running such an upgrade (something comparable to <code>Update-Help</code> cmdlet, for instance) - especially given that the philosophy of PowerShell is automation!</p>
  <p>Is there a cmdlet/script that I can deploy to upgrade my PowerShell installations across different computers?</p>