Bad ignition switch would mean that as soon as you turn the key the car would usually die. You would have to hold the key in the on position. I'm betting this sounds like it's the problem a bad main relay will usually result in hard starts but I haven't seen it shut off liked described.