Forgot to add condition if the VLAN didn't exist.
Per Steven Murawski's suggestion I have used $() to get the property
Updated example
Forgot condition if $UsedVLANs was null
Forgot ElseIf for Absent and missed where the test would fail if no Team was there.
Lots of forgottens, fixed friendly name and tabbing.
Spacing
General mof layout
Add adapter param
Warning that my code is not optimized yet
Change Static to Manual to match PS
Initial code for Get-TargetResource
Pulled in updates from Jason's master