For anyone facing an issue with extraction of password on Windows. Make Sure That:
Java is installed and java is in env path
change the code to
$javaEncryption = 'java -jar ' . DIR . '/WinSCPPasswordDecrypt.jar ' . $sHostName . ' ' . $sUserName . ' ' . $sCurrentPassword;
This should fix the password field being empty when importing into filezilla