finding the logon server of remote computer

hello there, I hope someone can guide me on this. I would like to know if there is a command that I can run from the power-shell console that will give me the LOGON SERVER of  the PCs I'm researching without having to remote each PC and interrupt the users. I will then create the script to do this for multiple remote computers. 

I'm doing the following by remote connecting to each PC. I'm looking to get the same results as %logonserver%

example:

c:\> echo %logonserver%

\\DC1

I know there got to be way that I can do this remotely to all the PCs in question. I believe in the power of power-shell [:D]

Thanks in advanced.