Cables and cable assemblies for battery connections are available in a wide variety of types and sizes.
For the small ones: ready made Betterieclip 9V to JST PHR2