stfoskey12
Emperor of Foskania
You can't actually, unless you have on board propulsion and even then it's a losing proposition. When you spin up the wheel, it will cause the bus to spin by applying a torque to the bus. You can stop this bus spin with propulsion. To extract the energy back out of the flywheel, you could slow down the wheels with electromagnetic braking but again this would impart a spinning torque to the bus that you would have to use propulsion to offset.
In between spin up/spin down, the wheel would tend to hold the bus in a stable pointing attitude but this scheme doesn't work because the cost of bringing the extra fuel mass more than offsets the power gain (really not a gain, trading rotational kinetic energy for released chemical energy) and adds mass. Also, for the wheels to be big enough to hold the bus stable purely on their own momentum, they have to be very heavy, further adding cost and mass - and the larger your mass, the more propulsion you need an so on.
A reaction wheel is a type of flywheel where you spin a mass to impart a torque on the bus, allowing it to change pointing attitude without expending propellant. But they can only spin so fast before they fail, which means there are limits to how much pointing you can do.
What's a bus in this case?