These work like a charm!!! Kept the neighbor’s cat away at our house!You could look into motion activated water sprayers. Lots of them on places like Amazon depending on your situation and finances. Cat generally hate getting wet. I picked one at random to show you what they look like.
TERRO Havahart 5277 Motion-Activated Animal Repellent and Sprinkler,