Update GenCommand script

Signed-off-by: Daniel Sum <daniel@cherrypulp.com>