Welcome to the Airtable community!
It sounds like you are writing your own custom script and got stuck. Let us know were you got stuck, and maybe we can help.
If you need help with the Airtable scripting side, the scripting documentation is great.
If you need help debugging, lots of console.log() helps.