Not that I expect to be much help, nor do I expect this to be the best solution, but my solution to a similar scenario was to save the current UCS at the beginning of the lisp, then set the UCS to get my desired results ("view" in my case, to get my mleader rotation right), then put the UCS back at the end.