The LAZY script will make your life easier, and of course ...
WiFi Passview – An open source batch script based WiFi Passview ...