Under normal circumstances, your HMI stops applications by issuing a stop message to PPS ( see "Launcher control object (/pps/services/launcher/control)"). However, for testing purposes or if your system doesn't have an HMI, you can stop applications from the command line using the stop-apps script.
To stop all running apps on your system:
Run the following from the command line:
stop-apps
The stop-apps script echos the stop command to the PPS object:
"msg::stop\ndat::" > /pps/services/launcher/control
The launcher shuts down all the running apps.