Some kind of spray would solve the problem temporarily. I use cayenne pepper in my birdseed to keep the squirrels out. Maybe some solution, H2O and some kind of pepper? The first rain would make it useless.
Hooking the little flagpoles up to a few live wires would do the trick.
A little off topic but I have a woodchuck (groundhog) living in the ravine behind my house. Anyone know how to keep him out of my garden? I’d just shoot him but it’s a suburban neighborhood and my wife has gotten fond of watching him in the yard.