title: Running commands in an azure VM from Azure devops
body: <p>I have got the following code as a task in Azure devops, the task finishes ok but notepad isnt runining on the target vm? It doesnt seem to have worked any ideas?</p>
  <h1 id="script.ps1-sheg">script.ps1</h1>
  <h1 id="start-process-notepad.exe-vsgz">start-process notepad.exe</h1>
  <p>az --% vm run-command invoke  --command-id RunPowerShellScript --name vmname -g $ rgname --scripts '@script.ps1'</p>