You can update your PS5 controller through an on-screen prompt, but if you miss it, there's a manual workaround.
You can connect your PlayStation 4 controller to your PC using a micro-USB cable or wirelessly via Bluetooth.