If you sell the shares immediately, do you then owe capital gains tax since you held the investment less than one year?
If you get shares at a discount and are allowed to sell immediately, put as much as they'll let you into the plan, take the discount, sell the shares, reinvest the proceeds according to your investment policy statement.