Dumb a$$ cat sh# in my shop like 7 times.

So, my cat was ill, so I kept it in the garage for 2 weeks and it used a litter box. Then it voluntarily relocated itself back to my shop where it typically lives. But now it craps in the corner rather than outside. My shop has a 8" hole in the wall for cat ingress-egress, so it is only in the shop occasionally to eat and drink but now wont dump out in the friggin field where it used to, cause it had become citified. I can verify that the cat is exiting the shop constantly thru its cat door cause I have cameras around the area.

What kind of bear mace or formaldehyde can I spray around the corners of my shop to discourage the cat from pooping and peeing?

I put 6 moth balls (naptha type) where it poops and it pooped twice on top of them like a smart ***, so that idea is out.

Any advice welcomed. thanks.