o isn't a filter on BSD top, it's a sort.
o Change the order in which the display is sorted. The sort key
names include cpu, res, size, time. The default is cpu.
I'm not sure if there is a way to filter it the way you want.
So you could press o then type COMMAND but COMMAND=iTerm2 is invalid.
Alternatively you could run top with the -...