Script Api - Copy Artefacts from Repo to another Repo

Hello everyone,

for our current development process, we want to copy artefacts from a repository to another repository (on the same nexus instance).
In our case, every git branch (e.g. development and feature branches) has it’s own nexus repository.
If a feature branch is created, we want to copy some artefacts from the “development-branch” repository into the “feature-branch” repository.

The Nexus Rest API could handle this, but is in our case to slow. So we would like to use the Nexus Script API (Script API).
Does anyone has an example how to achieve that behaviour?