How do you compile (C#) files in your project or engine source?

There is a C# file inside the engine code at “Engine\Source\Programs\UnrealBuildTool\UEDeployAndroid.cs” and I want to implement something like this into my own project.

Related question: How and when does UEDeployAndroid.cs get called during compile time? I want to call a java library using similar code found inside this project before .apk file is produced.