Please help I’m Stuck It’s been 5 months

So that looks like a spring loaded push button?
The engine runs when you are pushing it in, and stalls when you release it?
Also, how did it get there?
Was it an anti theft device?
Or was it installed because of another issue?