Did something similar, but was really cutting a coarse screw thread.
Theoretically, my lathe cannot cut coarser than 3 mm pitch, but by replacing the 40T drive gear by a 30T, and making up a sort of tangential turning tool, with a 1/8″ round toolbit, it was possible to cut a 4mm pitch, half round thread.
Slow using minimum speed and back gear.
But it did what was required.
Not so easy if the thread has to be wide and deep
Howard