Threatening 3 year old with a time out in the closet

I know this is bad but it’s the only way to make my child listen to me.

I don’t want to do it anymore because I don’t want to inject fear in him. While I already have 🥴

Any tips to getting your 3 year old to do as told/ listen?

EDIT: I have never actually put him in the closet