Battens are important, for the reasons noted above, and they're trivially easy to make.
We accidentally left behind nearly
all the battens for the new mainsail for our new-to-us boat, and didn't realize it until we went to put that new sail up for racing the fall series end of last season. Luckily a club mate had bunches of spare batten material, in various widths and thickness', and gave us a length. A hacksaw to cut it, a file to clean up and lightly bevel the edges, and some rigging tape over the ends and we had battens

.
We just noticed, in hanking-on the old main weekend-before-last (we save the new sails for racing), that
its top batten was missing. The left-over piece I have from making the ones for the new main looks like it might be just about the right length.
Now, where you go to buy batten material, that I do not know. Also, I imagine the width and thickness are probably somewhat critical to the sail's behaviour.
Note: Better to make them slightly too long, and trim the length down with the file, gradually, using trial-and-error, than to make them too short. They should be just a bit difficult to get into and out of the pockets--that way they'll stay put. Make them too short and they can move around--possibly slipping right out of the pockets on their own.
Jim