To provide a graphical window that updates information for the user during script execution, you should use something like kixforms, which was designed for this very purpose.

http://www.kixforms.com
_________________________
Stevie