An astronaut does the same thing. The next task is for the astronaut to do work. It is not enough to move around outside. Usually the astronaut has some task to perform. This may be tightening or loosening a bolt, or perhaps operating a latch, or grabbing an object to move it.
Some tasks only take one hand to perform.
For light forces and small things, the astronaut can hold a handle with one hand and perform the task with the other. But larger tasks require more force or two hands. For those tasks, astronauts have special tools to hold their feet, called foot restraints. These foot restraints can be attached at many locations, and usually can be adjusted to hold the astronaut in a variety of positions. Now you know about spacewalks, or EVAs.