It is possible for the switch to be bad or have a loose connection.
First you want to make sure that it is the button and not a wiring issue.
You will need to check to see if there is power to the switch.
Here is a helpful guide on how to test the window switch:
I have attached diagrams showing how to test the switch for your reference.
Please let me know if you have any questions.
Images (Click to enlarge)
Friday, March 18th, 2022 AT 10:15 PM