Is it possible to wait for a command to finish before you continue typing. I know I can use `Sleep` to wait but I might not know how long the command will take and it could be different every time. 