Why not just beat the dog and get the punishment over, beat it hard enough so it hides all the time and won’t ever bark again?
Dogs need training, even breeds known to be barkers, you don’t all of a sudden one day decide the dogs barked too much, you’ve had it and it should suddenly stop what it’s been allowed to do this his whole life.
The pooping on the floor isn’t on purpose, revengeful or being spiteful, dogs that are housebroken and pee or poop somewhere they are not supposed to is out of fear, anxiety, confusion. If you had a young child that did something wrong would you scream at it and lock it up in the closet for crying and being afraid? Why not? Make the punishment stick to vet though the child’s scared and confused, what does that have to do with the rules that were changed the day. Yesterday it was allowed but not today. Bad Bad BAD!
Maybe if the dogs actions bother you now you should think of renominates it before you either use your hands, feet or shock collar on it to make it behave and conform to your rules. You’ve already made the dog fearful, what next?