Question: why cmd always pop up?
Answer: There are number of things that can cause this. If the command prompt is popping up after a specific time then the most likely cause is task scheduler. There are some Windows services and third party applications that can make an indefinitely recurring task in your task scheduler.