I have a script that created a scheduled task to run one minute from the time of creating, using the PowerShell line (Get-Date).AddMinutes(1).ToString("HH:mm").
$Time = (Get-Date).AddMinutes(1).ToString("HH:mm")
schtasks /CREATE /S $env:computername /RU $env:username /SC ONCE /TN "!One_time_task" /TR !Task! /ST $Time
The problem is I need to do the same using CMD because I cannot use PowerShell for this task. Currently I have to explicitly edit the line to the desired time, I know time /t is the currently time, is there a way to just add one minute easily?