Hi,
As per help article that you've referenced, tscon "returns the control to the original local session on the remote computer, bypassing the logon screen."
By default, Windows Scheduler runs on behalf of Local System account (which does not have user desktop).
You may configure your task so that it starts only when the certain user is logged-on - this is what must be done.
However:
> 5. Ran the tscon utility from command line [...]
> 6. Close the Remote desktop Window.
tscon requires administrative privileges in order to switch sessions. If it is started with proper permissions, Remote Desktop window is closed by the system when session is switched. The fact that you mention step 6 and your followup comment makes me think that your accound does not have elevated administrative permissions (Run As Administrator), thus session is not switched and your desktop is just closed by the system when you close your RDP window.
> every 5 min and run upto 15 mins.
TestComplete and TestExecute are single-instance applications. Even more - TestComplete cannot be started if TestExecute is running and vise versa. Thus, in order to be on the safe side, I would recommend to have launch frequency lower then the execution timeout.
> 3. Create the Window Scheduler and attach the batch file.
Depending on how you start batch file execution, task will or will not wait for the batch to end execution. In addition, batch itself may or may not wait for the TestExecute to close. If the task does not wait for the batch to finish its job and batch does not wait for TestExecute, then the task will be completed within a second or two, while TestExecute may appear to be running for more then 5 minutes and this will prevent its subsequent start when the task is triggered again.