The basic thing is to call SAS using a command line interface, e.g.
<path>\sas.exe -sysin <path>\sasprogram.sas -log <path to log file>
You can test it first by opening a command prompt and test the command (it may not be called sas.exe, I do not know exactly what the SAS executable is currently called.
You can read about the command line interface here