You will want to be sure to protect the source code of the script by creating an executable out of it.
This will prevent someone from being able to step through the code in debug.
I recommend using PS2EXE-GUI from TechNet to further obfuscate the source code and modifications to it.