You can try putting her in her bed, and telling her that her mom instructed you to do this --- maybe sit and make up a fantasy story to tell her ( a happy one!), until the child calms down and feels sleepy. If she thinks she's frustrating you and getting your goat, she'll continue to run wild -- the solution is to calm her down enough to get her to feel sleepy -- sounds like she's running on self-induced adrenaline! You stay calm and firm about getting her into bed -- act like you do this every night -- when she sees your frustration turn to firm confidence, she'll try to figure out how she lost the upper hand there!
Hope that helps you out!
Moe
Hope that helps you out!
Moe