Creating custom function to update field from one module to another

Creating custom function to update field from one module to another

I am trying to create a custom function to update a field from a custom module to a corresponding field in our Account module. I have searched Google and YouTube, but the information/examples I have found are for older versions of the Deluge script writer. Any help you can provide is appreciated.