How can I modify private servers using script?

How can I use scripts to know if a server is private + their owner?

PrivateServerId