I have written a VBA script in Outlook 2016 and it works when I run it from Outlook. I now want to be able to run the script through a bat file, so that I can use Task Scheduler to run the script daily without my input. I don't seem to be able to run scripts through Rules on my version of Outlook.
I've tried the following in the cmd line, but it only opens a new instance of Outlook and doesn't run the script.
"C:\filepath\OUTLOOK.EXE" /autorun ScriptName
After some digging, I don't think /autorun is supported by the version of Outlook I'm using, but I can't seem to find what replaced it.
I would like to be able to run the script automatically once a day, though it doesn't have to include Task Scheduler if there is an easier way.