Using Win10 22H2 with VS2022 17.13.6 Community with VS pinned to the taskbar. After clicking "Troubleshoot Compatibility" entry on the File Explorer context menu for devenv.exe I checked "The program requires additional permissions" choice in the Program Compatibility Troubleshooter and completed the rest of the process. Afterwards, the taskbar button for VS2022 always started it as Administrator (after giving UAC consent) for the IDE and for opening a solution from the recent items upon right clicking the button.
The Program Compatibility Troubleshooter added the following to HKCU -