Warning that my code is not optimized yet
Change Static to Manual to match PS
Initial code for Get-TargetResource