How do I write the value of a single property of a object?

qbanet359’s helpful answer uses direct property access (.LoadPercentage) on the result object, which is the simplest and most efficient solution in this case. In PowerShell v3 or higher this even works with extracting property values from a collection of objects, via a feature called member-access enumeration. E.g., ((Get-Date), (Get-Date).AddYears(-1)).Year returns 2019 and 2018 when run … Read more