Yes, this can all be done with Perl, win32, and win32::gui.
To go fullscreen you have to pass extra flags on window creation, but you can.
Yeah, grab a keystoke.
Sure thing, probably a for loop here...
Close that window you opened...
Second batch:
Easy, just change your shell in the registry or your win32.ini (did this change somewhere?)
That will work, too. I run a few p2e compiled programs using win32::gui on my workstation all day long for weeks at a time without problems. Mine tend to use around 9mb of memory and stay there, no leaks I've noticed...