ConvertFrom-StringData converts text written as key=value pairs into a PowerShell hashtable. Pipeline file content into it when a configuration file already uses this format, then access values by property name. section 14.1.2
Reading Linux operating-system data
The /etc/os-release file can be read and converted directly: $OS = Get-Content -Path /etc/os-release | ConvertFrom-StringData. Access $OS.PRETTY_NAME afterward; remove embedded quotation marks with Replace when necessary.
