Can you Edit Shape Paths in Script?

The manual explains using the path tool to edit vector graphic shapes at: … hape+Paths

Is there a way to make these types of edits in scripting? I have a lot of 4 pointed shapes (like rectangles, but not right angles) to draw based on coordinates in a database. It would be great if I copy and paste a lot of the shapes and then edit them with scripting.