Issue commands to Linux Rust server console

Using Linux, I'd like to issue a rust server commands to the console from an external script/application. Is this possible? If so can someone point me in the right direction or pass on some source code?

Thanks.