If the choke linkage wire is badly bent and the sensor on the exhaust is also bent you should be able to bend it straighter so
the choke butterfly is fully closed when the engine is cold and when the engine is warm the butterfly should be fully open.
You could also check the coil is ok ,check the air gap ,make sure the kill switch wire isn't shorting intermittently ,sometimes
you run the motor with the kill switch wire disconnected to the coil and if the motor runs fine you know the problem
is in the kill switch side, another test I sometimes do is hook a timing light to the coil and watch the flashing light
when the motor misfires ,if the timing light stops flashing when the motor misfires you know it's a spark problem ,even
a cheap spark tester will work if you don't have a timing light.
https://www.briggsandstratton.com/e.../ignition-system-theory-and-testing.html