@Venkata Praveen Tellajeera, Thanks for posting in Q&A.
From your description, I know you want to get real time performance metrics like CPU, RAM, Disk of Cloud PCs via PowerShell.
Based on my research, here are the PowerShell scripts to get real time CPU usage,RAM usage and Disk Usage.
CPU Usage:
Get-Counter -Counter "\Processor(_Total)% Processor Time" -Continuous
RAM Usage:
Get-Counter -Counter "\Memory\Available MBytes" -Continuous
Disk Usage:
Get-Counter -Counter "\LogicalDisk(_Total)% Free Space" -Continuous
Hope above information can help you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.