For all of those who liked my post about automating scans with OpenVas in Kali Linux, below I prepared a new version of the poc. Maybe you will find it useful too. ;)
TL;DR - now it looks like this:
So, I think now it should be easier to perform a scan from CLI :)
You'll find updated code here.