I would like to find all directories at the top level from the location of the script that are stored in subversion.
In C# it would be something like this
You can tighten this up a bit:
gci -fo | ?{$_.PSIsContainer -and ` (gci $_ -r -fo | ?{$_.PSIsContainer -and $_ -match '[_.]svn$'})}
Note - passing $__.Name to the nested gci is unnecessary. Passing it $_ is sufficent.