Arduino HC-05 programming question

I connected my HC-05's together using the at commands and I know how to see the RSSI signal strength there, but how do I program the arduino to connect both HC-05's together and receive the RSSI value from the slave HC-05 without me having to go to the serial monitor. (basically, I want to do what I'm doing with the AT commands in the serial monitor all in the script that I upload to the Arduino so that I can get the RSSI and assign it to a variable.