A 2017 Street Scrambler is one of the newer water-cooled models, isn't it?. Not familiar with those and don't have any data on them.
Assuming the system works like on our air-cooled models, you'll need to find which two wires form a closed circuit when the stand is in its folded, normal running position.
With the switch connector unplugged from the harness, use a multimeter or continuity tester and operate the switch and see which two wires show a closed or short circuit (less than 0.3 Ohms or so) when in the running position, opening the circuit when stand is down.
Try shorting out those two wires in the part of the connector that goes to the wiring loom, bridge them temporarily and see that the engine starts and runs even when a gear is engaged.