8. A method at a mainframe system for receiving instructions from a client system, the method comprising: receiving, via a network environment into an operating system including a job entry subsystem of the mainframe system, by at least one processor coupled to memory elements of the mainframe system using a transfer protocol, a job control language (JCL) job that includes an embedded Restructure Extended Executor (REXX) program in a JCL template to provide instructions to the operating system having console support for the embedded REXX program, wherein the embedded REXX program interacts with the operating system using a console that is accessible programmatically and does not have a component that is visible to a user of a client device, and wherein the JCL job allocates a transient executable area of the memory elements into which the embedded REXX program is copied and from which the embedded REXX program is run, and wherein no REXX code is pre-installed on the mainframe system since the embedded REXX program is included in the JCL job, and wherein the embedded REXX program includes mainframe operating system commands to create the console to issue the mainframe operating system commands of the embedded REXX program to the operating system and receive a response to the mainframe operating system commands, suppress unsolicited broadcast messages to the console to stop the unsolicited broadcast messages from being received by the embedded REXX program, issue the mainframe operating system commands of the embedded REXX program to the console, retrieve the response to the mainframe operating system commands of the embedded REXX program issued from the console, deactivate the console in response to determining that the mainframe operating system commands of the embedded REXX program have all been issued, and delete the transient executable area of the memory elements into which the embedded REXX program was copied in response to writing the response to a job output; copying, by the at least one processor, the embedded REXX program to the transient executable area of the memory elements; executing, by the at least one processor, program code of embedded REXX program copied into the transient executable area; suppressing, by the at least one processor, unsolicited broadcast messages to the console to stop the unsolicited broadcast messages from being received by the embedded REXX program; activating, by the at least one processor, the console support for the embedded REXX program; checking, by the at least one processor, for completion of the JCL job; deactivating, by the at least one processor, the console support in response to completion of the JCL job; reading, by the at least one processor in response to completion of the JCL job, a completion code to check for errors; and reading, by the at least one processor, output created by execution of the embedded REXX program to capture the response.
9. The method as claimed in claim 8 , wherein checking, by the at least one processor, for completion of the JCL job further comprises: deleting, by the at least one processor, the transient executable area after execution of the embedded REXX program.