Well make a show where the female leads are competent,
The statement was made about a cop show to explain its popularity. It occurred to me when in the last 25 years has a female cop or soldier been shown as anything but competent? Since Pepper Anderson was running around in Police Woman and Charlie's Angels could not be actual street cops we have had nothing but competent woman shown in the security services.
The most incompetent a female cop ever got in my memory was too push to far while undercover and get herself raped. Even then a regular character dealt with the rape and remained a police professional.

So can anyone name an incompetent regular character female, cop, soldier, spy, agent, crewman of a starship etc? As close as I can think of was Hooperman's boss Captain Stern but then she was in the tradition of the boss dealing with the star cop being incompetent, not a woman being incompetent.