Mediating the exchange coupling and anisotropy in nanoscale magnets via interfacial interactions