I’ve seen this done before. It probably works fine but you might want to throw some smoothing caps on it to clean it up. Your results are tied to how clean the supply is and it might not have any short circuit protection.
Personally, I keep an RCRCRC board and a few variable bench supplies laying around. I got 3 CRT oscilloscopes and the two variable supplies for $100. Keep an eye on Craigslist..