title: PowerShell command Start-Process not getting executed on remote
body: <p>I have the below <code>PowerShell</code> script which runs form <code>Jenkins</code> on node of <code>windows server 2019</code> (it suppose to run <code>deploy</code> on <code>sql server</code>):</p>
  <pre><code>$Username = $args[0]
  $Password = $args[1]
  $Env= $args[2]
  
  
  $pass = ConvertTo-SecureString -AsPlainText $Password -Force 
  $Cred = New-Object System.Management.Automation.PSCredential -ArgumentList $Username,$pass
  
  echo &quot;********  Start SQL Deploy  ********&quot;
  
  echo &quot;-----  B4 Start-Process Powershell.exe  -----&quot;
  Start-Process -FilePath &quot;msbuild&quot; -ArgumentList '&quot;Database Services\Database Services.sqlproj&quot;','/t:deploy','/p:Configuration=Release','/p:TargetConnectionString=$Env','/p:BlockOnPossibleDataLoss=True','/p:TargetDatabase=&quot;test&quot;','-fl','-flp:logfile=msbuild.log' -wait -LoadUserProfile -credential $cred 
  echo &quot;-----  After Start-Process Powershell.exe  -----&quot;
  </code></pre>
  <p>and my output is:</p>
  <pre><code>********  Start SQL Deploy  ********
  
      -----  B4 Start-Process Powershell.exe  -----
      -----  After Start-Process Powershell.exe  -----
  </code></pre>
  <p>We can clearly see <code>Start-Process</code> was not executed.
  It's important to say it works locally for me, and only when I move to work with <code>node</code>, it started to happens.</p>
  <p>I saw similar issue was raised in jenkins forum, but no one commented on that:
  <a href="https://issues.jenkins.io/browse/JENKINS-63978" rel="nofollow noreferrer">JENKINS-63978</a></p>