If you have an APC UPS of the style shown in the photo, and some helpful person discarded the battery pack already, this is the spacer needed to put two normal 12V batteries into the unit.
You need a 10mm m3 screw and nut, male and female spade connectors, and appropriate guage wire, ideally color coded as per the original item on left in the photos.
You may need to adjust the height of the male spade connectors depending on your UPS (I don't know), so the holder is a separate part for iteration as needed. A 10mm m3 screw protudes slightly into the hole in the spacer when assembled.
I suggest testing the assembly in the UPS for proper fit before crimping any wires.
The author marked this model as their own original creation.