15 lines
368 B
PowerShell
15 lines
368 B
PowerShell
param (
|
|
[string]$script
|
|
)
|
|
|
|
$fileName = "$script.bat"
|
|
$url = "https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/installers/$fileName"
|
|
$filePath = Join-Path -Path $env:TEMP -ChildPath $fileName
|
|
|
|
Write-Host "Downloading $fileName..."
|
|
Invoke-WebRequest -Uri $url -OutFile $filePath
|
|
Start-Process $filePath -NoNewWindow -Wait;
|
|
|
|
Remove-Item -Path $filePath
|
|
|
|
exit
|