In a batch file, add pause to display the "Press any key to continue . . ." message.
@echo off
php generate.php
pause
Optionally you can use "@echo off" to hide the commands being sent, so the script wont display stuff like "php generate.php" and "pause".