Your niece is being raised by your parents. Thus, you must simply keep your composure and deal with your parents with all issues. You don't have to issue punishments to your niece.
If it comes down to you and your niece and no one else around, you can send her to her room for time out until...