Forcing a garbage collection is an available option in the UI (although not immediately obvious how to do it) In the spirit of the light automation that ExecAction facilitates, this would be useful
ExecAction !memory will perform a GC.