== is not a valid operator, valid options are -eq or a single =. Changed overriding stdout.log to appending.