@echo off
setlocal

rem Set the variables
set "download_url=https://github.com/runpod/runpodctl/releases/download/v1.9.0/runpodctl-win-amd"
set "download_file=runpodctl.exe"
set "install_path=C:\runpodctl_exe"

rem Create the installation directory
mkdir "%install_path%" 2>nul

rem Download the file
powershell -command "(New-Object Net.WebClient).DownloadFile('%download_url%', '%install_path%\%download_file%')"

rem Add the installation path to the system environment variable
setx PATH "%PATH%;%install_path%"

echo Installation and setup of RunPodCtl completed successfully.


pause