after some tweaking i got this to work. requirement to install putty/plink script:
--- @echo off set SERVER=%1 set USERNAME=%2 set PASSWORD=%3 plink %USERNAME%@%SERVER% -pw "%PASSWORD%" -batch echo $(($(awk -F . '{print $1}' /proc/uptime)/86400)) ---