I login to my local xp computer then start a Citrix Desktop Session,
I do not think the condition is being met for the script to be called. That is why I was asking what conditions must be met for the script to know that I am trying to login to the Citrix desktop.