Rework command parsing of app command
Rework command parsing of app command

Original parser would count arguments as they were parsed
and compare with the expected number of arguments to determine if
argument parsing was finished and runProc command could be executed.
This could lead to issues if unexpected arguments were encountered.

Therefore refactor to:

 1) Just store command to be executed when scanning argument list,
    instead of executing the command immediately.
 2) Store all arguments for runProc until le_arg_Scan() hits the
    end of the argument list.
 3) Run command after le_arg_Scan returns.

Resolves: LE-13736
Change-Id: I345ed868445e246a17e3a665abdb20d37455ca6e

legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af