refactoring classes with adapter for powershell psm1 as composite resource