@JTRTech you mean this 2 tutorials are good?
-Print Last Receipt via Automation Command - #8 by QMcKay