So you have created an application or script that requires a policy evaluation before it can continue, how can you tell that the policy evaluation request has completed?
Fortunately there are events provided via WMI that can tell you when policy evalution is complete. Thats how the Policy Spy tool from the SMS 2003 Toolkit events tab works.
To illustrate with wbemtest:
Check here for an example of how to do subscribe to WMI event notifications with VBScript.