For example, if you only want to insert one or two commands, that's certainly not a problem. I can give you something there.
but on the other hand it can quickly become very complex. is the content to be copied always the same or does it have to be selected from a source program first?
if the latter then you should rather do it by hand, developing such a script takes a while. And I don't think you can access all the necessary data in a conventional way anyway...