Running a DC motor with PWM

I don't want it do go down on its own. I want it to go up and then stay up