Use this:

`am start -a android.intent.action.MAIN -n <package_name>/<full_class_name>`

To control an app, you'll have to put correct values of `<package_name>` and `<full_class_name>` in the command. For example, you can use `com.google.gmail/com.google.gmail.check_mail` (Hypothetical names) as last part of command.

[Obtaining package name of an app is easy](android.stackexchange.com/questions/28767/view-apps-full-package-name), but obtaining class name of action isn't. There are two problems:

1. Many app developers keep class info private.

2. Not all developers do smart modular programming. Its good habit to divide an app in multiple classes which could be triggered by intents, but not all developers are smart.

Solution of 1st problem: Decompile the app using `apktools` and see all info. There are also other ways, but this one is always-working method (unless app is based on NDK instead of SDK).

Solution of 2nd problem: Nothing.

Don't worry, most of popular apps follow best programming practice and they provide `Public API` from which you can get class info.