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

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2944067:04crwdne2944067: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

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

Have you Tried resetting the NVRAM

How to reset NVRAM on a Mac

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

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

crwdns2934271:0crwdnd2934271:0crwdne2934271: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

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0