Create adv_prg_appfun.sh