$url = "https://s3.amazonaws.com/assets-cp/assets/Agent_Uninstaller.zip" $output = "C:\Windows\Temp\Agent_Uninstaller.zip" (New-Object System.Net.WebClient).DownloadFile($url, $output) [System.Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") | Out-Null [System.IO.Compression.ZipFile]::ExtractToDirectory('C:\Windows\Temp\Agent_Uninstaller.zip', 'C:\Windows\Temp\LTAgentUninstaller') Start-Process -FilePath "C:\Windows\Temp\LTAgentUninstaller\Agent_Uninstall.exe"
参考サイト:GitHub https://gist.github.com/ak9999/e68da02d7957bd7db2a2a647f76d50be