in reply to Automating user input for a CLI-based program on windows
The most common approach is to send keystrokes (and mouse clicks if you really need to) via Win32::GuiTest.