Getting Strange mesh with the Scanning Example

I found similar issue and your response with GroundRemover script here can you tell me where to put this script and how to call it to remove the background?