Concept Flow - Adding methods with ScriptMethod
Create object
Define script block
Add ScriptMethod to object
Call method
Method executes script block
Output result
This flow shows how to create an object, add a ScriptMethod to it, then call that method to run the script block and get the output.