Automate update Avast free

How can I best automate in Windows 10 the following:

1 trigger: when I connect to internet
2- action: Avast free launches, settings menu is selected (click on top right) and then update option is selected (on left column menu)?
Possible with task schedule or other tool that I do not need to download?

%a,u thanks

Please elaborate…