If you delete this key before you do any InGroups in your script ...

HKEY_CURRENT_USER\Software\KiXtart\TokenCache

Should be the same as flushing the cache, but no - there is no builtin script command for flushing the cache.

-Shawn