Zet - How do you inject a command into bash from a script?

How do you inject a command into bash from a script?

You can’t inject a command into the current line but you can inject a command into the history and the use up arrow to edit/use

history -s "command to put in history"

#bash