I am running a batch file using Shell command. That batch file is supposed to create a text file
depending on some conditions. Though I am able to get the TaskID saying that its already processed
but when I check up that text file is not getting created immediately after getting the TaskID.

How to know whether running the batch file is completed ?

And, also how to wait till Shell command executes the batch file completely?

Please let me know immediately as my target date is reaching.