I want to run a command which prompts me to enter yes/no or y/n or whatever. If I just run the command local(\"my_command\") then it stops and asks me for input
local(\"my_command\")
Putting this as an answer though its a comment from @BobNadler
run("yes | my_command");