Update object data in metadata via script in Templater

First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.

What I’m trying to do

I want to know if you can manipulate objects metadata using Templater. I am using a collection of object to track metrics related to files, such as how many files is connected to it as a key value pair in the object metadata. What I want to know is their away to update the properties given a period of time. Is their away to do it automatically?

Thank you in advance.