The exercises he is trying to get you to do are to help stabilise the shoulder. If after the exercises have been tried, you still have instability then surgery is the only option.
With regard to how to do the exercises, it would be very difficult on a forum to advise you of this, you need to contact a physio or the consultant and get somebody to show you how to do this.