This boardFrom you Smooth Stepper it has more the one output port, that board I showed can be wired with just normal connections, or you could attach a Breakout Board like this that has a Relay and the PWM output
The only problem with using a Breakout Board like this is, you need a 5v and 12v power source
https://www.ebay.com/itm/5-Axis-CNC-...UAAOSwKtlWqCrJ