Hi,
Have you ever been asked:
How to run the script in a secure way without exposing the code?
I think everyone has been asked about that.
That is why this post might help you somehow.
Under my GitHub repo you can find 2 useful scripts:
https://github.com/przybylskirobert/ADSecurity/tree/master/Script_encryption