I need to launch an application remotely for automated testing and PSExec is holding on after launching the application

view story

http://serverfault.com – What I need is a way to launch a remote application and nothing more. I have an automated test run that functions fine remotely, but I need to launch the application as part of the deployment process rather than the test process. PSExec launches the application, but it maintains its connection to the process and never releases. This will cause my deployment to time out and then the test run fails due to the deployment failure. I created a second script to kill the PSExec process, but it never runs since the first script never finishes. When I manually use these two scripts I can make the (HowTos)