I got an answer about this question, about 2 years ago,
but now I want to use the same command to create a task that will run every half an hour. How can that be done? Thank you in advance.
You should use
schtasks /create /sc minute /mo 30 /tn "Task runs Every 30 Minuts" /tr c:\PATH\TO\TASK.exe