Simple to code, drag and drop blocks, flexible. Use a SSR to drive the motor.
https://www.electro-tech-online.com/articles/pulse-sequence-generator-smart-timer.938/
Or store bought appliance timer, maybe two, to effect reversal. There are timers with triggers......
Regards, Dana.