[CMake] Fixed regression on Windows. Added a pause after batch auto-generation