You don't say how you are calling the logon script, but obviously, that is where your problem is. You have 3 choices.
1. Change how you call your logon script so no DOS box is generated.
2. Disjoin this script from you logon script by RUNning a separate instance of WKiX.
3. Push a call to this script to the RunOnce reg key.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.