Like any other Microphone, you need to set the AirPods Hands-Free option as a playback device when using any Windows app. Open the application settings, and check if the AirPods are set as the microphone. There can be a conflict when you have multiple microphones, especially when your webcam has one. Applications such as Zoom, Microsoft Teams, Skype all have dedicated Microphone settings.