In this, you need to restart your PC with the Xbox wired controller connected. If using a wireless connection, connect the controller immediately to Bluetooth as soon as the computer turns on.
If you’re looking for a controller for your computer ... of the Xbox pad. They might not be perfect, but they’re fairly well-made, not particularly expensive, use standard USB and Bluetooth ...