Use Custom Object propery in Custom Object Script

I want to create a custom object with some properties, and some scripts that use those properties. I can figure out how to access the properties from within the script. Function that creates the object. Once property is "Count". I have a ScriptMethod called "Step" that I would like to refer to the "Count" property defined.

Richard's got a point, though, you're kind of reinventing the wheel here. PowerShell has the Write-Progress cmdlet, and if that doesn't meet your needs, you can also easily access the System.Windows.Forms.ProgressBar class, which has similar functionality to what you've shown so far (X = Value, Increment / Count = Step, Step() = PerformStep() , etc)