I needed to run an operation that required keystrokes[Enter] keystrokes (there was no --quiet or --force).
Using read as an example target operation, I did something like this:
$ read x <<< "x-value
> "
$ echo $x
x-value
(Note the > is added automatically by Bash)