Reset SMC from command line, macbook pro, OS Sierra
Hi all, wondering how I can reset SMC from command line. I have an old macbook pro that has sentimental value that is otherwise working fine but it's exhibiting clear SMC issues (fan spinning up spontaneously for no reason, macbook sometimes powers up sometimes doesn't [which is unrelated to actual battery charge], battery shows up as dead in the menu bar, but computer starts up just fine, the lights on the battery charge indicator do not turn on, etc.).
There's a problem with the built-in keyboard - because of heavy use left side Shift key stopped working a while ago, so I can't use the Shift+Control+Option method, since I can't use the right side Shift key for it.
I'm a software engineer, so would have no problem digging into the innards of the system and changing something out in VIM. I know there must be a place where this can be done from command line, I just need to know the specifics.
Thanks for any help!