I am trying to gain a better understanding of Powershell and I don't have a programming/development type background. In addition I've only been through the basic PS Essentials MS training course. Although I've been in Windows Administrative operations for around 13 years.
Often times when searching the web for powershell command information or scripts that I can use as examples or tailor to my needs I will find something that looks like the solution at this thread:
It looks very confusing, and quite advanced, to me and I am not certain how one would use a script like this, it looks to me like its building a CMDlet. What seems confusing the most (If this IS building a CMDlet) is that this would be system specific & you'd have to have this script on every system you wished to use the functionality of it on. In addtion I have to wonder how you would incorporate something like this into an additional script, say if you wanted to do additional commands, because it looks like you'd have to do some kind of call to the script or maybe Invoke-command at each instance of trying to ... well ... invoke it's functionality.
I'm not trying to be specific to the above referenced question/solution, just using that as a structural example. I don't immediately have a simpler one.
Would someone mind helping me understand?