How to submit a R task in putty?

I am going to run R script by putty, but don't know what is the command to call the program.

Assuming that you have R installed on the VM, then the command is R. That will bring up a console, that you can leave with the command q().

See also: How To Install R on Ubuntu 22.04 | DigitalOcean

Though maybe haven't quite understood the question.

Thank you! I will try.

I am also using it, and it's working properly.

I have found solution, the program can be run in Terminal of R-Studio.