Sounds like the battery charge is too low to run the laptop.
You can check the battery to some extent using Powershell built into Windows 10, as follows: 1) Press Windows key + X 2) Click Powershell in the menu 3) Type powercfg /batteryreport
This will generate a report and if you scroll down, you will see Design Capacity and Full Charge Capacity ratings. If the Full Charge Capacity is less than 50% of the Design Capacity, it is faulty and needs to be replaced.
Also note the figure alongside the "Cycle Count". This tells how many times the battery has been fully recharged. A typical battery can handle around 500 charge cycles, but some will fail sooner than that.
***If my post helped, click the White thumbs-up symbol to say thanks***
***Please mark Accept As Solution if my post solved your problem***
I am a volunteer and I do not work for, nor represent, HP
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".