This script will optimise all pdf files in the current directory, then apply a timestamp prefix and send them to /output
Use GhostScript to Optimise all PDF files in directory with timestamp