This is for instructional purposes only.
This one-liner found kicking around a newsgroup somewhere shows how you can leverage PowerShell and NetSH to get a list of the WiFi network profiles on the local machine, along with the passwords for those networks. As always, watch for line wrap below.
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize