Status RDS Servers

Hello colleagues. Help me get information about RDS servers. in Server Manager → Remote Desktop Services → Servers there is a “All Servers” window where you can see the “managed” status of the server. How to get this status in powershell? For example, that the server is online or the server is rebooting.