Yea just run it from command prompt in the first place
You computer executes the commands so fast that after it finishes, it closes itself, therefore, at the speed of today's computer, it closes itself almost immediately after it has been executed by the computer