How to run Scripts in Command prompt?

How to run Scripts in Command prompt?

Take a look at Rscript and/or littler - https://cran.r-project.org/web/packages/littler/index.html