After PCL and dependencies are installed, commands shown in below are executed.
Or recommend to refer the page
1.pcd_write is downloaded. Also, you can see the folder : pcl-doc-tutorials-content-sources-pcd_write.
7. If you can see the contents as shown in below, installed and executed are successful.
This is the file.