Hi Mohamed!
Using the “Engine Command” activity is the first idea you usually have because as you said is native to the environment and we used it a lot also in the past as you know very well.
The main situation in this use case is that the Engine Command only stops the Application runtime on-top of the AppNode/Engine so the container is still running so it doesn’t help us to get the outcome that we’d like.
So, we need to provide a way to finally stop the container, and to do that we need to stop the whole Appnode. Another way to do it is by using a simple Java snippet to get the same outcome but I think the external command is a simpler approach.