I have a .nb file (with one cell) that I would like to evaluate every day. The easiest way seems to use Windows task scheduler. I set the .nb file up, so the cell is an initializer (starts running as soon as the file is opened). However, I can't get the file to open with Windows task scheduler. As the action, I have the following parameters:
Program: Currently pointing to mathematica.exe, but I have several options: mathematica.exe, math.exe, MathKernel.exe, wolfram.exe, WolframKernel.exe, wolframscript.exe
Arguments (optional): I was using "-run file.nb" but tried many alternatives based on what I found around the web
Start in (optional): I have the directory where the file.nb is located for this.
I also read about saving the .nb file as another type of file. I tried saving it as a .m but couldn't get it to work either with the task scheduler. Save options: Wolfram Notebook (.nb), Wolfram Language Package (.wl), Wolfram Mathematica Package (.m), Wolfram Language Script (.wls), along with several others
For reference, I am using Wolfram Mathematica 12 student edition and Windows 10 home edition. Any help would be greatly appreciated.