Here is what Apple suggests users should do when getting rid of their old Mac:
https://support.apple.com/en-us/HT201065
Since your laptop won't power on you could remove the hard drive or SSD and install the drive into a USB enclosure so that you can connect it to another Mac so that you can retrieve your data and to securely erase the drive. If you have a Retina model laptop, then you will need to purchase the proper OWC Envoy Pro Enclosure for your SSD.
If your friend installed a third party battery into the laptop, then perhaps the replacement battery is defective. The quality of third party Lithium-ion batteries is extremely poor. Also a bad battery or a drained battery can prevent an Apple laptop from even powering on. I would suggest to first try an SMC reset. If this doesn't work, then disconnect the battery and try powering on the laptop while the battery is still disconnected. You may need to perform an SMC reset again as well. If this works, then you at least know the battery is the most likely cause of the problem and it will allow you to prepare your Mac for disposal.