We can retrieve the current password by running the command given below from the command prompt.
"%plesk_bin%\plesksrvclient" -get
To retrieve the password in the command line, you can use -nogui option.
"%plesk_bin%\plesksrvclient" -get -nogui > plesk_password.txt
After that, you can find the retrieved Plesk password in the plesk_password.txt file.