title: Start-Process: Access is denied (even though i've provided credentials
body: <p>I am getting the following error when trying to execute a line of code</p>
  
  <pre><code>Start-Process : This command cannot be executed due to the error: 
  Access is denied.
  </code></pre>
  
  <p>This is the code being executed</p>
  
  <pre><code>$username = "domain\username"
  $passwordPlainText = "password"     
  $password = ConvertTo-SecureString "$passwordPlainText" -asplaintext -force
  $cred = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $username,$password
  
  $powershellArguments = "D:\path\ps.script.ps1", "arg1", "arg2", "arg3", "arg4"
  Start-Process "powershell.exe" -credential $cred -ArgumentList $powershellArguments -wait
  </code></pre>
  
  <ul>
  <li>This code works fine when executed locally, but not when called via vbs WMI</li>
  <li>Both computers exist in the same domain and address range</li>
  <li>The username and password supplied have admin privileges on both machines</li>
  <li>I have tried both with and without <code>-wait</code> however neither works, and due to the user being privileged, I'd prefer to keep it</li>
  </ul>