I believe the API is exposed in Windows unit, or one of the winunits-xxx packages. Unfortunately, unless someone else already does so, you have to read and understand in C++ as that's what MS used in their documentation. Starting page is
here, while an example is
here, you can just replace the notepad with whatever you want and change the schedule accordingly.