Use UE4 as an external algorithm processing exe

Your executable would be a “Product” under the UE4 EULA; but, because it will contain portions of UE4, it would not be an “Unrestricted Product”. This means that, to the extent you monetize the executable, royalties would be due on revenues that do not fall into one of the royalty exceptions under Section 5 of the UE4 EULA. We encourage you to look at those exceptions, as there are many royalty free uses of UE4 under the UE4 EULA.

Additionally, please take a look at the Unreal Studio EULA, which may be more appropriate for your use. The Unreal Studio EULA is completely royalty free.