You havn't provided your platform, but on Linux multiple commands can be run from the build menu by separating them with semicolons, but I don't think Windows can do that and Macos I don't know.
But on all platforms and the recommended method is to put the multiple commands in a script and run that from the build commands. Since you seem to be Python centred it could even be a Python script.