maybe try a bat file with a waiting time?