questions about battery disconnect wiring

I need the disconnect switch to function to pass tech inspection. leaving the wiring alone wont allow the vehicle to shut off with the switch