concept ScriptProperty member in category powershell

appears as: ScriptProperty members, ScriptProperty member
Windows PowerShell in Action, Third Edition

This is an excerpt from Manning's book Windows PowerShell in Action, Third Edition.

Here’s an example. You’re going to add a ScriptProperty member, desc, to $s that will provide an alternate way to get at the description NoteProperty you added earlier, with one difference: you’re only going to allow values to be assigned that are already strings. An attempt to assign something that isn’t a string will result in an error. The property definition is shown next.