I was asked if it is possible to modify one of those common cheap buck converters to remotely mount the potentiometer.
In theory it should work, but what better way to be sure than to actually do the experiment.
-----
My tip jar: https://www.patreon.com/pileofstuff
-----
This isn't the only way to do it.
It's probably not the best way to do it.
But it's how I do it.