Can’t the button, inside of the avast GUI invoke UAC to ask for permission itself?

Starting the antivirus you’ll be asked by UAC before and then the popup comes.
The problem is when you try it from the system tray icon.