So with Ultra Beasts, this isn't working. I think it's due to the little cinematic that happens. So... any way this will somehow be "fixed"?
On the Stationary RNG tab, in Category, select "UB (First Encounter)". Subsequent encounters don't have that cinematic. Try that.