Command Execution modules are normally suitable for exploit modules. For example, you can try to use a CmdStager to switch from command execution to payload execution. On windows environments the Msf::Exploit::CmdStagerVBS mixin is popular to convert command execution bugs into exploits.

Exploits are preferred over auxiliary modules (for example they provide the user with a session, post exploitation stuff, etc.).

Unless there is a good reason to not write an exploit module with this bug, this module should be converted to an Exploit.