Switching to a specific task

is there a way to switch from a task to another specific task?

Something like taskYIELD() but that takes as parameter the name or handle of the task to switch to.

Thank you

FreeRTOS will always run the highest priority task that is able to run, and run the task that has been waiting the longest if there are ready tasks at the same priority - so there is no way to deliberately schedule a specific task unless you deliberately unblock the highest priority task (in which case the scheduling algorithm will naturally select it to run).