Password script functionality fails if .ps1 scripts are used. Existing functionality checks if the script is executable and fails if its not. This is valid for UNIX platform but does not return correct code for windows(.ps1) file. It does return correct code for .bat file. Executable check is not as such valid for windows.
Solution:
Fix typo and skip executable check if environment is windows
Problem:
Solution:
Fix typo and skip executable check if environment is windows