Invoke-WMIMethod  -ComputerName $ip -Credential $cred -path Win32_product -Name Install -ArgumentList @($true,$null,"D:\temp\install.msi")