There are two locations to enter GCode commands directly, the ‘Console’ by typing into the edit window and hitting Return / Enter or place that into a macro. These are used to change the firmware setup for use.
The second is designed to provide pre and post, per job GCode as you request.