copying over code from winrm work and making compatible with psv2. initial copy is working but dirty check not working and recopy copying bad zip