confOS/windows/installers/runner.ps1

21 lines
397 B
PowerShell
Raw Normal View History

2024-07-02 11:40:49 +02:00
param (
[string]$script
)
if (-not $script) {
Write-Host "No script found"
exit
}
$fileName = "$script.bat"
$url = "https://git.mylloon.fr/Anri/confOS/raw/branch/main/windows/installers/$fileName"
$filePath = Join-Path -Path $env:TEMP -ChildPath $fileName
2024-07-02 11:42:17 +02:00
Write-Host "Downloading $fileName..."
2024-07-02 11:40:49 +02:00
Invoke-WebRequest -Uri $url -OutFile $filePath
& $filePath
Remove-Item -Path $filePath
exit