tag:help.appveyor.com,2012-11-13:/discussions/questions/25031-what-is-the-recommended-way-when-deploying-to-agent-of-starting-an-app-from-deployps1AppVeyor: Discussion 2018-10-24T21:00:36Ztag:help.appveyor.com,2012-11-13:Comment/459552942018-08-23T19:48:22Z2018-08-23T19:48:22ZWhat is the recommended way when deploying to agent of starting an app from deploy.ps1?<div><p>Can you try <code>cmd /c start</code> and let us know if this helps?</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/459552942018-08-24T10:35:51Z2018-08-24T10:35:51ZWhat is the recommended way when deploying to agent of starting an app from deploy.ps1?<div><p>Thanks Ilya.</p>
<p>Just <code>cmd /c start</code> was blocking powershell .</p>
<p>In the end the combination that made it work was:<br>
<code>$job = Start-Job { param($command) cmd /k "$command" } -Arg $command</code> where command is <code>"start /d ..."</code></p></div>javiertag:help.appveyor.com,2012-11-13:Comment/459552942018-08-24T17:03:33Z2018-08-24T17:03:33ZWhat is the recommended way when deploying to agent of starting an app from deploy.ps1?<div><p>Good, thanks a lot for sharing!</p></div>Ilya Finkelshteyn