Is there a way to direcly run an Rscript using tsystem in Talend?

Solution for Is there a way to direcly run an Rscript using tsystem in Talend?
is Given Below:

I am using tsystem component to run an R script outside of Talend, the command I am writing is the following:

cmd /r NameofFile.r

The command is actually opening Rstudio with the script in it, but is not running it.

Is there a way or another script I can write to be able to run Rscript directly.

thanks in advance:)