How to get Hard drive health in % using PowerShell

Hello, I'm very much new to PowerShell, so I need help with something important, I have a desktop application developed Using Electronjs, it's a system scanner and I want to Scan for Harddrive Health, But this is not something we can achieve with javaScript or Nodejs,  I have to Use c++ or Powershell , with smartmontools or WMI , WMIC to scan and get harddrive health,

Anything will be appreciated, Thanks for reading my question :)