PowerShell: The preference variable $OutputEncoding
The value of the PowerShell preference variable $OutputEncoding controls in what encoding text is sent to third party applications. Its type must be a System.Text.Encoding object or an object that is derived from that class.