Paste the sript in the Ghidra scripts directory for example: Ghidra_10.1.5_PUBLIC/Ghidra/Features/Python/ghidra_scripts