If you turn on continuous scanning, all you have to do is press the sync button (or 1+2 if this is a regular wiimote) while a game is running (or the wiimote window is open) and the wiimote will connect.
AMD Threadripper Pro 5975WX PBO+200 | Asrock WRX80 Creator | NVIDIA GeForce RTX 4090 FE | 64GB DDR4-3600 Octo-Channel | Windows 11 23H1 | (details)
MacBook Pro 14in | M1 Max (32 GPU Cores) | 64GB LPDDR5 6400 | macOS 12