First pieces of code in PowerShell

new-object:

$sw = new-object System.IO.StreamWriter(“c:ts.txt”)

get-member:

$sw | get-member -memberType methods

For some reason, this method of invoking object methods is reminiscent of both Ruby and Smalltalk for me.