This action switches to, and launches if necessary, the specified application. It is the equivalent of using the macOS App Switcher, or launching the application by any means.
This Action requires that you select the App during Macro design, and you cannot use a Variable for the name.
However, there are several alternatives that will allow you to use a Variable for the App Name:
open
shell command with the Execute a Shell Script action.