Command-line scanner

How to start scanning from command-line with instructions a file log in which the scanner will write down results of scanning? With cavscan.exe I hasn’t understood: I specify it a file - the window is shown and quickly disappears. I specify it all disk - the same. I have already got confused. :frowning:
Tried an antivirus and internet security

Does this post by HeffeD help you?