Write-Host "Charm Client Bootstrap" Write-Host "-- Creating Charm Folder" New-Item -ItemType Directory -Force -Path C:\charm\prereq Write-Host "-- Downloading latest cim" $client = new-object System.Net.WebClient $client.DownloadFile("https://releases.charmsys.com/cim/release/cim-release-latest.exe","C:\charm\prereq\cim-release-latest.exe") Write-Host "-- Installing Latest Cim" Start-Process C:\charm\prereq\cim-release-latest.exe -ArgumentList ("/VERYSILENT","/SUPPRESSMSGBOXES","/NOICONS",'MERGETASKS="desktopicon,fileassoc"') -NoNewWindow -Wait -PassThru $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")