Hi Sathy;
I would suggest that you use the PB debugger and set a break point in the above script on the "PostEvent" command and again in the actual "PE" script. Hitting the break point on the PE command means that its about to fire the UE OK and then in the UE_Filter event itself, you can step through the code to see what is actually happening.
Good luck!
Regards ... Chris