You can by writing it in a text file then converting that text file into a bat file
Example
@ECHO OFF
TITLE Cleaning Ram
ECHO Cleaning Your Ram
ECHO ==========================
ECHO Emptying Working Sets
cd C:\SysinternalsSuite\
ECHO Emptying Working Sets
Rammap -Ew
ECHO Done!
ECHO Emptying Standby List
Rammap -Et
ECHO Done!
Etc (continue the code)