Updated script to use CF_APPLICATION instead of CF_APP