This is how I have it in my scripts.

ORAENV_ASK=NO;export ORAENV_ASK
. oraenv