commandParams

Use flattenCommandsWithParams and filter out the commands which do not matches to commandRegex