From http://blah.winsmarts.com/2013-9-Powershell_Script_to_restore_bunch_of_SQL_databases.aspx