title: Running PowerShell as another user, and launching a script
body: <p>I won't get into all the details of why I need this, but users must be able to launch PowerShell as a service account and when PowerShell loads it needs to run a script. I already can launch PowerShell with the stored credentials (stored as a secure string), but for the life of me I cannot get the script (located in $args) to run. I have tried a variety of things, and below is where I am currently. Any help would be greatly appreciated.</p>
  
  <pre><code>$user = "domain\service.account" 
  $pwd1 = "big long huge string of characters"
  $pwd = ($pwd1 | ConvertTo-SecureString)
  $Credential = New-Object System.Management.Automation.PSCredential $user, $pwd
  $args = "\\domain.local\location\location\location\Script\script.ps1"
  Start-Process powershell.exe -Credential $Credential -ArgumentList ("-file $args")
  </code></pre>