Sterile neutrino Dark Matter production from scalar decay in a thermal bath