Move from xml transformations to powershell