Trying to Write First Blender Script

I’m trying to write my first Blender script, and I’m having a little trouble finding the info that I need.
Part of what I’d like to be able to do is create a custom screen for the duration of the script and return the user to the previously active screen after the script exits. Fort this temporary screen, I’d like to be able to control the creation and placement of Windows. I assume that I should be using Module Window for this kind of thing, but I can’t seem to find the functions to use.

Of course, I could always include the script in a .blend or use documentation setup instructions.