Try this:
sudo /usr/bin/powermetrics -s cpu_power -n 1 | grep '^cpu [0-9]+ frequency: '
Topic:
App & System Services
SubTopic:
Core OS
Tags: