To retrieve the password in the command line, you can use the "-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.
Eg: notepad plesk_password.txt