Be clever& in charge
The child is challenging your authority to tell them what to do, etc.
Let them know you are the boss, but make them think they are. Try giving them choices wherever possible. For instance, getting ready for bed - they need ot brush teeth and put on pj's. Ask them to pick which they want to do first - it gives them a feeling of control, and you still get both things done. But you are in charge!