I'm pretty sure you can't get a WiFi password via CMD but there are other ways. Remember: Google is your bestfriend.