The following example will use a remote PowerShell session to query a list of domain controllers under a domain name, and return the first result.
Note: This does not verify that the domain controller is online and responding to queries!
///
/// Returns a domain controller from the specified domain
///
///
The domain