How to refer to the chosen entry in a dynamic button for later use

Is there a way to reference the chosen entry in a dynamic button so it can be used later in an embedded function?
E.g. If I copy something using Go "/myalias" FOLDERCONTENT=copytosource, how can I later select the recently copied item? Or do other tasks with that item?

Maybe an automatically created variable like $entry or something similar could work here?

You might be able to do this with a script function, using an embedded command to make that the action of the Go FOLDERCONTENT menu.

Here's an example: