In embedded mode, you instantiate the WLST interpreter in your Java code and use it to run WLST commands and scripts. All WLST commands and variables that you use in interactive and script mode can be also run in embedded mode.
The following example shows how to connect WLST to a running server, create two servers, assign them to a newly created cluster and exit.
As you can see, the embedded mode consists in passing WLST commands as String to the weblogic.management.scripting.utils.WLSTInterpreter class. This kind of mode can be useful for developers that want to spice their application with some administration tasks, although it is discouraged for system administrators as it will be harder to maintain.