Turn arduino on and off with switch

That's what on/off switches are for.

Don't make multiple threads about the same thing.