Answer
As far as whether or not you can update a virus definition file, I am not familiar with the process to do that in devices running Junos OS, but if it is something that can be accomplished through CLI commands, rather than through shell, then it should be possible to do it from a script as well.