In Jātaka 13, Buddha condemned female rulers:
Cursed be the dart of love that works men pain! Cursed be the land where women rule supreme! And cursed the fool that bows to woman’s sway!
The Bible also condemns female rulers:
As for My people, their rulers are mockers, and women govern them; O My people! Your leaders lead you astray, and the way of your paths they have destroyed. (Isaiah 3:12)
Al-Bukhari, also too criticised female leaders:
No people who appoint a woman as their leader will ever prosper. (Reported by Al-Bukhari, 13/53)
From the above citations, it's clear that all the Abrahamic religions as well as Buddhism discourages female rulers.
But what do Hindu scriptures say about female rulers?