Is there a way to secure my script from people who wants to see my beautiful code??
If you don't use PowerGui Pro ($), you can also do it yourself.
See Keith Hill's Make-PS1ExeWrapper and the PS2EXE project on Codeplex.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
View solution in original post
Various compilers are available for PowerShell scripts. Outside of a controlled interpreter (such as a GPO firing off the script instead of a person) I'm not sure - if someone can execute the script, logically they have to be able to read it too.