generate_execute updated

fixed for multiple parameters

Signed-off-by: John Liu <johnnnpl@gmail.com>