Right click on the script and copy it.
Click "Folders" on the top. The left area of the window should change. Find "Program Files."

In the right area, find Corel.

Click on Corel Paint Shop Pro X, and then find the Scripts-Restricted folder.

Press CTRL + V or go to Edit >> Paste. Your script is now installed!