for /f "delims=" %%i in ('curl -H %H% %link_to_get_upload%') do set response=%%i
echo %response% | C:\jq.exe ".href" > %file%
set /p upload_url= < %file%
curl -s -H "Authorization: OAuth <token>" "https://downloader.disk.yandex.ru/disk/..."
wget "https://downloader.disk.yandex.ru/disk/..." -O archive.tar