terminal not executing/saving commands

Solution 1:

I achieved this by setting up a profile for each terminal window in Terminal>Preferenes>Profiles (write in the command you want to execute at startup in "Profiles" tab "Run command"), then open each window by right-clicking terminal "New window with a profile" and then saved the window group as I described before, hope this helps somebody

Solution 2:

My problem was that I was running the commands by typing them at the prompt instead of running the commands using the menubar's Shell > New Command...

After doing this Save Windows as Group... worked as expected. A different more detailed answer helped me get to this solution.