For Loop Power Simulation without pwr package

Hey there, can't seem to figure out where to incorporate a Cohens d value in a traditional for() loop power simulation. Wanting to use a loop rather than the pwr.t.test in the pwr package. Anyone have any ideas?