This is one of the boons for which Bagalamukhi's devotees worship her. Other Mahavidya goddesses are also claimed to stand for comparable powers useful for defeating enemies, to generally be invoked by their worshippers by means of many rituals. In spite of which version in the story you believe, another https://www.youtube.com/@Mahavidyabaglamukhi