I'm a little unclear from the wording exactly what you're looking for. So here's two possible answers:
If you're looking for a script to send resources to a certain village, I would suggest Sophie's Resource Sender script. By default it sends resources in a ratio suitable for minting coins; however this is configurable in the settings.
If, however, you're looking for a script that interacts with the Premium Exchange, I would advise you such scripts are banned on .net, per our game rules:
§7) Other Script Rules
7. A script may not interact with the Premium Exchange.