title: Install Microsoft Patches with Powershell
body: <p>I am writing a script to install patches on Windows boxes. The best methodology I can find is to:</p>
  
  <p>1) map a network drive
  2) copy files over
  3) install files
  4) clean up and log
  5) remove network drive</p>
  
  <p>I can do all this except for number 3. How do I install/execute a file remotely via powershell? I want to avoid using PSEXEC; I'd like to use all that powershell has to offer.</p>
  
  <p>Also, Is there a better way than I am seeing? I'd like to eventually expand this into something that would audit and see which patches are installed.</p>