I am calling an API that uses the DOS window and need to know when it is complete. Is there an easy way to look at the DOS window and know if it is open or closed?