You can get the script of a shape as a string, and evaluate that code string at run-time with
run script
Code:
tell application id "OGfl"
tell front canvas of front document
set shpHasScript to first shape
run script (script of shpHasScript) as string
end tell
end tell
If the script returns an object, you should be able to use an idiom like:
Code:
Set oScript to (run script strScript)
and then use the methods and properties of that script object.