Function Get-ProxySettings checks for strings only working for Windows OS localized in English language. Other languages return localized strings that do not work with this detection method.