Well in the scheduled scanning options this option is already there.
From the avastUI, Scan Computer, Scan Now, select the scan it is you want to run, click More details, Settings, Scheduling and check the Shut down the system after the scan finishes.
See attached image, let me know if you can see it as I'm having issues attaching images ?