multi_console_command.rb
(by darkoperator) uses the meterpreter APi cmd_exec()
to execute a list of commands.
The metasploit API that allows us to use the shell interpreter is: session.shell_command()
Option 1:
build your own multi_console_command.rb
module with session.shell_command()
API
Option 2: build one resource file with those post-exploitation commands
My metasploit API cheat sheet list: https://github.com/r00t-3xp10it/hacking-material-books/blob/master/metasploit-RC%5BERB%5D/metasploit-API/my-API-Cheat-sheet.md
My metasploit resource files cheat sheet: https://github.com/r00t-3xp10it/hacking-material-books/blob/master/metasploit-RC%5BERB%5D/metasploit_resource_files.md