Just a little update - it works superbly!

At first it seemed not to be. I couldn't get it to output anything to the second display - even via the command prompt.
Turns out the correct syntax is:
-screen \\.\DISPLAY2
rather than
-screen \\.\Display2
or
-screen \\.\display2
Took me an embarrassingly long time to figure that out.
From exiting a game, MaLa regains focus again without any problems.
A job well done! Again, thanks for the help SGT and Swindus!
It will be interesting to see what uses for the conditional statements some of the more experienced guys like yourselves come up with.