I believe EnhanceDepth is part of a feature set called Enhanced Photography that was originally designed for RealSense-equipped tablets from around 2015 that had both a front-facing webcam and rear-facing RGB camera. I have heard of cases where the mode was able to be used on laptops, likely because they often have an RGB webcam built in, and so that cam can simulate those old RealSense tablets by acting as the front camera whilst the R200 acts as the rear camera.
The Perceptual Computing page that you linked to is for the 2013 Perceptual Computing Camera, the direct predecessor of the original F200 RealSense camera that was first released in 2014. So whilst some of the basic principles in that article may be applicable to RealSense, the scripts are not.
This article describes how to use RealSense R200 with QT Creator and Librealsense to create a 'point cloud', a kind of depth scan that is useful if conventional depth scans have too much noise or other problems.