Development of an Automated Assembly Line, DAQ Test Systems, and In-Beam Characterization of 2S Silicon Modules for the CMS Phase-2 Tracker Upgrade at the HL-LHC