What do you mean by integrate? In general, when you add a GUI to any program, it changes the way it works quite a bit. (As you are now responding to the user, instead of just running from top to bottom). If all you need is a mini interface with a button to run the program, then you just put the entire program in a sub, and call that from a buttons callback.
What does the program do (or should it do, with an interface, that it didnt do before.. ?)
C.