title: How to install programs as admin in Powershell
body: <p>I started to write a powershell script to automate the deployment of new Windows 10 PCs.</p>
  <p>I've done a script to install the corporate apps and mapping the network folders and printers.</p>
  <p>But I have a problem that I must input the admin password for each program I wish to install.</p>
  <p>I've searched the internet and all I found was the <code>runas</code> command, I see that is similar to the <code>su</code> of Linux but I can't push the password.</p>
  <p>This is how I made the install of all applications:</p>
  <pre><code>Set-Content &quot;$DESTINO\program.bat&quot; -value 'msiexec -i C:\progtemp\program.msi /quiet'
  Start-Process $DESTINO\program.bat -Wait
  </code></pre>
  <p>Do you know a better method?</p>