Sen2cor v2.8

this is the way to use the shell for applying sen2cor

L2A_Process.bat --resolution 10 D:\S2

Take a look at this thread (please read all the posts)

Source of the thread