Is it possible to execute operating system commands that have been created with transaction SM69?

You can call the SAP standard function "SXPG_COMMAND_EXECUTE" in your script. But please note that the RFC user will then need the appropriate authorizations for this function.