May work, but may be more difficult & expensive than you think.
Almost 20 years ago in the Caribbean
the stop solenoid on my Perkins
4-108 went bad. I found an "exact replacement" from a Perkins
Problem is, the "exact replacement" mount was different from the original mount. It wouldn't fit.
So I gave it to a good machinist on Tortola (yes there are some). He did a beautiful job of modifying the mount so the new stop solenoid would fit.
I installed the new solenoid. Guess what? It didn't have enough "oomph" to activate the stop lever, no matter how I tried. I took it out.
I removed a white wire coat hanger from my hanging locker, opened it up, and put a little hook on the end to go thru the stop lever on my engine
. Ran the hanger forward (on my boat which has a V-drive) to just above the transmission
, where I put a good size loop in the end.
To stop the engine, I just swing open the companionway
ladder which gives access to the engine compartment, grab the loop on the white coat hanger, and gently pull until the engine stops.
That has worked flawlessly for over 20 years now. I've replaced the coat hanger only once -- last year -- and while I have a manual throttle-pull cable aboard which I'd intended to fit to the stop lever, each time I thought about doing it I thought better of it:
Why in the world would I want to replace a simple system which has worked positively and perfectly for over 20 years?