I tried to execute two Powershell script. 1st one is incorrect and 2nd one is correct but bamboo shows Successful build.