The cutting tool for the job is an M16 machine tap, chosen for the smaller flutes compared to a hand tap. This makes it more suitable for cutting gears. It’s turned by a belt driven pulley ...