Is there a way to secure my script from people who wants to see my beautiful code??:smileyhappy:
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.
Ex. http://dmitrysotnikov.wordpress.com/2011/08/22/compile-powershell-scripts-to-exe/
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.