create wrapper to exec command in apps env