Is there a way to inject the commands to a running script?

Like using some user defined console commands, or CLI commands to send to running script?
0
Like using some user defined console commands, or CLI commands to send to running script?