Simulate a panorama using 6 cube faces
If your question is: Is it possible?
Can't help you with the scripting but it's definitely possible to model the scenario.

You should easily be able to find out how to make a box and unwrap it. You may need to adjust the UV's to get the textures right. It may be easier to make a big texture of the 6 images.
Make sure you flip the normals to point inwards.