You can use com.avast.cmd tool like this:
/Applications/Avast.app/Contents/Backend/utils/com.avast.cmd ctl stop WifiInspector
It controls the "Automatic scanning and alerts" switch, which disables most of Wi-Fi Inspector functionality, but still allows on-demand scans.
The other commands are "start" and "status".