My MacBook mid 2010 keeps shutting down while boot

My Macbook mid 2010 keeps shutting down while boot, I first installed MacOs Yosemite that's when it started. It kept crashing and while boot it displayed some weird command thing on the left. I installed Sierra (not high sierra) the crashing is still going. Now it's "running" MacOs Sierra please help

crwdns2893858:0crwdne2893858:0 crwdns2893862:0crwdne2893862:0

crwdns2894050:0crwdne2894050:0

crwdns2889612:0crwdne2889612:0 0

crwdns2893872:0crwdne2893872:0:

Let’s get a better view of things, install this gem of an app! CoconutBattery take a snapshot of the apps main window and post it here for us to see Adding images to an existing question

crwdns2893770:0crwdnd2893770:0crwdne2893770:0

Have you Tried resetting the NVRAM

How to reset NVRAM on a Mac

crwdns2893770:0crwdnd2893770:0crwdne2893770:0

Well the following might helpful for you: If your Mac restarted because of a problem

crwdns2893770:0crwdnd2893770:0crwdne2893770:0

Given the age of your system I would check the batteries health, install this gem of an app! CoconutBattery take a snapshot of the apps main window and post it here for us to see Adding images to an existing question

crwdns2893770:0crwdnd2893770:0crwdne2893770:0

crwdns2892346:0crwdne2892346:0