Hi i'm pretty new to Powershell and need some help if there are a more optimal way to make this code:
gwmi -Namespace root\hpq -Class HP_NumericSensor | ? {$_.Name -eq "Temperature Sensor 1"} | % {@{($_.Name -replace "Temperature Sensor 1", "Room Temperature")=$($_.CurrentReading)}}