I've done some searching but conflicting terms for my question makes it hard to find what I'm looking for, if it's even possible.
What I would like to do is to run a windows form C# program and have it "listen" for external commands, ideally sent somehow through a windows command line.
The use case is that I have some automation software that I have to run with some test equipment software. During different points of my test, I need to run a script in my automation software (manually selecting the script and pressing a button). However, I can include steps in my sequence in the test software that fires windows command line commands. The goal is to send a command to my running C# application that will load my script, automating the process even further.
While I could simply re-write a smaller version of my automation software that is single-run use and uses command line arguments, there is a bunch of pre-amble that the automation software that connects to some hardware that would make the process take longer than working in the automation software manually.
Is it possible to create an external hook in C#? I'm not looking for a full code answer. I mostly just need the name of this feature so that I can look it up and learn it properly.
Hopefully I've made this clear enough.
Edit: As an extra bit of information, I only have access to the source of my automation software, not the testing software. The only options I have for the testing software is to export a file (which I may end up having to poll a file for changes in the automation software), or running a windows CMD command.