Thanks, both Kevin and @cameron 👍👍. Yes I wrote an extension but not in Java, so i need to bridge commands to improve my workflow.
Manual interactions is not perfect, a bit cumbersome slow and sometimes I even forgot to copy manually before executing my code 🤦