Tools -> Options -> File Sharing
Tick the box titled "Scan files for viruses using:"
Click Browse and locate the AVG Program Folder
(Normally: C:\Program Files\Grisoft\AVG Free)
Then select "avgscan.exe"
(Avgscan.exe is the command line scanner)
Hey Presto, its all set up