Is there a way to do Xbee Range test using Serial with arduino or similar, without XCTU?

I’m using Xbees S2C and i need to get the dB power from 2 Modules, similar to range test from XCTU.

But the thing is, i need to do it via serial communication with Arduino.

So i need to make the Arduino send via serial a command that the modules can test each other dB power, same way as XCTU, and the module connected to the Arduino have to send that dB power via serial, so i can use that in my code.