Hello @Robin Cai ,
Yes, Get-WmiObject have been deprecated in PowerShell Core. If it's PowerShell 6+, WMI cmdlets don't work and the recommendation is to use the CIM cmdlets which can basically do the same thing. It will work with PS 5.1
Let me know if your question is already answered or if you have any further queries?