fixed power shell script (reason for failure is unknown)