[CORE] cmdmgr: Added support to filter out commands from a command string

Signed-off-by: Anup Patel <anup@brainfault.org>