You haven't mentioned your computer setup (Windows or Linux) nor the CPU you have installed: INFORMATION REQUIRED WHEN POSTING A QUESTION
If you have a Ryzen CPU/APU you need to install Ryzen Master to get the correct Temperatures. You can download the latest version from AMD Download page for your Ryzen CPU/APU.
But if you need create a Powershell script to get the temperatures automatically, try posting your question at AMD server forum:
From a link from Developer.amd.com: Tech Docs | AMD
You can always open an AMD EMAIL SUPPORT ticket and see what they suggest: Online Service Request | AMD
EDIT: Found this webpage with Powershell script for temperatures. Don't know if this is where you got your information originally: powershell - Get CPU temperature in CMD/POWER Shell - Stack Overflow
Also this may be your best bet for a working Powershell Scritp from Github: Get CPU Temperature With PowerShell · GitHub
Thank you for the reply and sorry for not clarifying about the setup.
Unfortunately, as it's a MSP type of situation, we have hundreds of different customers with different setups, so it's impossible to specify any particular configuration.
The Stack Overflow and GitHub scripts both utilize getting the temperature from WMI, but it seems, that AMD processors (or maybe the motherboards used with them) don't report the temperature to WMI.
I'll try the e-mail support and check out the server forum and developer page. Thank you for the suggestions.