Welcome to the forums prfalco
I made an example for you. It is a package that you can run and use from text files and batch files. I just self studied this topic, so I can explain this in detail, if that is what you want.

The example has been attached to this reply. It was created in Windows and it is a ".zip" file. Unzip it in the root of your C drive and run the batch file using "Command Prompt". Do not double click on it, because if there is a problem it will disappear before you can read it.
I hope this helped.
