Monitor Windows PC without a client?

I found this link post some info: SSH'ing from a command line sensor or shell command
I think it will work, but looks like it will take a lot of time to get going, (and that I don’t have)

So, after a little thinking I have an idea:

  1. Make a powershell script on the computers drive eg c:\scrips\update_homeassistant.ps1
  2. Make it run every x minute by task scheduler
    Like this: How to run PowerShell scripts with Windows Task Scheduler - Flemming's Blog
  3. Edit the script to collect data and send to Home-Assistant
    Like in Monitoring VMware ESXi in Home-Assistant with PowerShell - Flemming's Blog
    Maybe with https://github.com/flemmingss/Home-Assistant-PowerShell-Module