I've made a simple python program to generate a .lua challenge mod with selected parameters. Feel free to try it out and let me know any thoughts and issues. I intend on allowing more customisation in the future but for now I've got something. https://github.com/HoneySoakedSeagull/Balatro-Challenge-Generator
Also a note, if you want to use the default 52 cards, just delete the single card that's pregenerated.