I need to activate a dos command and check its results. How do I tell the access to wait until the shell command is done.