Export the Target search scope to the custom script & fix some bug.