Why can't you just run the whole thing from the login script itself? Trigger the running based on a potentially pre-existing registry key
code:
if not readvalue('HKEY_CURRENT_USER\SOFTWARe\KiXtart','Settings')
$rc=writevalue('HKEY_CURRENT_USER\SOFTWARe\KiXtart','Settings','1','REG_SZ')
; now do whatever you need to do
endif

This will run whatever you need to do just once for each user.

Please also read Sequence of events during logon and implement W2k/XP - Keep the Window visible on login?
_________________________
There are two types of vessels, submarines and targets.