In general your approach could work because I'm doing the same since many years. If it's dont work it's often caused of missing access rights and/or none valid qv licence and/or proper settings within the settings.ini.
For me it only worked if I'm always logged in my server which means my USER executed the task and runs qv. If none user is logged in or is taken to run the task and/or qv (maybe with an additionally runas-batch) the windows default-user is taken and might not have any access rights to the used files or even a licence and also the right configurations in the settings.ini. I assume that there are ways to get it also working with the windows default user but after I found a workaround I never tried to change it. Therefore I suggest to inquiry your issue from this direction.