title: execute command as domain user
body: <p>I want to run below command using domain user :</p>
  
  <p>New-DfsReplicationGroup -GroupName "RG01"</p>
  
  <p>I have tried 2 ways but for both it give error :</p>
  
  <pre><code>1). Start-Process powershell -Credential domain.com\Admin -password abc1234 New-DfsReplicationGroup -GroupName "RG01"
  2). Invoke-Command -Credential domain.com\Admin -password abc1234 New-DfsReplicationGroup -GroupName "RG01"
  </code></pre>
  
  <p>Please advice.</p>