Tuesday, May 20, 2014
PowerShell Object Creation – New-Module Pt. 1
Running this code will provide us with a local variable $BlogPostInfo that we can inspect.
We can see that the variable has the PSCustomObject type and are variable are now NoteProperties and our function is now a ScriptMethod. Also notice that our IsPublished variable is not included in the list because it is private, we did not export it. Next time we will cover some advanced topics such as defining ScriptProperties and method overriding.
$Until_Then = Good-Times | Get-Command