How to control character movement in Linux/Python at RUNTIME?

Hey guys I’m wondering how I can type some commands and give them to Unreal as RUNTIME input?
So that I can possibly control the character’s movement by a file!
Python would be okay as well!