Just a small addition to https://forum.proxmox.com/threads/how-to-integrate-eset-antivirus-with-pmg.49788/#post-238553
I guess with newer versions you have to use "cls" Command LIne Scanner:
open(my $cmd, '-|', '/opt/eset/efs/sbin/cls/cls' , '--base-dir=/var/opt/eset/efs/lib' ...