I need to run a powershell command via CMD
my command is
(Get-WmiObject -Class win32_pnpEntity -Filter 'Name like "ACPI Thermal Zone"')
[1].GetDeviceProperties().DeviceProperties |
Select-Object -Property keyName, data
However, when i try to run the same command with cmd, I getting exception in the query execution. it looks like something with the quote marks in the command.
Cmd command
powershell -command "(Get-WmiObject -Class win32_pnpEntity -Filter 'Name like "ACPI Thermal
Zone"')"
Please help, what do i miss?


