How to wire PWM Spindle without PCB board

My PCB is not working, is there a way to wire PWM Spindle without PCB board, meaning directly to the PSU ? Thanks