The potentiometer on the KBIC controllers used by sherline does run at mains voltage. I use one of these
homanndesigns.com/index.php?main_page=pr...ath=1&products_id=25
and drive it from the parallel port with no issues. Should be no issue driving it with a PWM signal from a mesa