Changed to use Microsoft.Wim.Powershell CmdLet