Edit on code. I commented out the 'cls' command (I was using it while running it under the KiX.exe). The 'cls' was causing a console window to pop up when the script was called.