FM Connector plugin that I bought came with a sample file that had examples of pushing and pulling information. Check and see if you have an example file in what you downloaded from Productive Computing or download it again. The examples were pretty good.
I looked through those and did not find a script that had quite what I was
looking for. Looking to push a payment with a related invoice number