nice, look forward to it being a native possibility,
this works with cpuz, maybe for insight.
Clear-Host
$i = 1
Do{
#Generate CPU-Z Log file
Start-process "C:\Program Files\CPUID\CPU-Z\cpuz.exe" -ArgumentList "-txt=cpuinfo" -Wait
#Variables
$CPUtemp = (((Get-Content "C:\program files\CPUID\CPU-Z\cpuinfo.txt") -match "Temperature 0") -match "Package").substring(16,2)
$CPUpercent = Get-WmiObject Win32_Processor | Select -expandproperty loadpercentage
$RAM = Get-WmiObject Win32_OperatingSystem | Select totalvisiblememorysize, freephysicalmemory
$RAMtotal = [math]::Round($ram.totalvisiblememorysize/1024/1024)
$RAMusage = [math]::Round(($RAM.TotalVisibleMemorySize - $RAM.FreePhysicalMemory)/1024/1024,1)
$IPAddress = Get-NetIPAddress | Where addressfamily -eq "ipv4" | Where interfacealias -NotLike "*loopback*" | Select -first 1 | Select -ExpandProperty ipaddress
$Date = Get-Date -Format "MM/dd/yy hh:mm tt"
#XML Stuff
[XML]$XMLfile=Get-Content(“C:\Program Files (x86)\LightingService\OledLastProfile.xml”)
$XMLfile.root.profiles.profile1.main.single.player.setting.text_list.text_string1 = "$date"
$XMLfile.root.profiles.profile1.main.single.player.setting.text_list.text_string2 = "$($env:COMPUTERNAME) - $($IPAddress)"
$XMLfile.root.profiles.profile1.main.single.player.setting.text_list.text_string3 = "CPU: $CPUpercent % / $CPUtemp °C"
$XMLfile.root.profiles.profile1.main.single.player.setting.text_list.text_string4 = "RAM: $RAMUsage GB of $RAMtotal GB"
$XMLfile.save(“C:\Program Files (x86)\LightingService\OledLastProfile.xml”)
#LiveDash
Restart-Service lightingservice -Force
Start-Sleep -Seconds 15
}
While($i -eq 1)