This is a reference to this article (How to Find the Wi-Fi Password of your Current Network). Here I have listed the commands needed to show the passwords.
netsh wlan show profile name=wifi_name key=clear
security find-generic-password -ga wifi_name | grep password
Replace “wifi_name” with your wifi name that you are connected to.