Fixes return code bug for powershell scripts

Added '-File' argument for powershell scripts execution in order to properly return the exit codes.