On earth we know that if we rotate a motor electrical energy is produced but dues to friction and absense of force the motor do not rotate continuously. But if we are in Space where friction is zero cant we rotate the motor blades initially with the help of batteries and then the motor goes on moving and generating its own powers for the satellite?
As in Physics.SE, I'll give you the rule of thumb for questions like these.
If you think you've found a way to produce unlimited energy for free, you almost certainly have not.
Perpetual motion, energy for free, or faster-than-light travel - if you think you've worked it out, and you haven't been studying physics for 30 years, it's a safe bet that you have not.
To sum up: No. The motor (which, if you're running it 'backwards' to generate power, has become a generator) will slow down and stop once the energy used to set it spinning is consumed by the items drawing power.
Removing Energy From a System Will Stop It
Something about generators that people generally don't understand is that once you begin actually drawing power from it the electrical resistance and electromagnetic effects begin to slow down the generator. This means the motor must work harder to input more energy into turning the generator to maintain the voltage. So yes, assuming you created a friction-less generator it would continue to spin for as long as you left it alone, but the moment you began drawing current from it you would rapidly slow and then stall it unless you input more energy to keep it spinning.
The amount of electrical energy that can be produced by a generator can never be more than the amount of energy used to make it spin. In fact, in even the most efficient design possible it will always be slightly less because no system is 100% efficient. Due to electrical resistance some of the electricity will be converted into thermal energy and you will end up with slightly less electricity than the amount of kinetic energy you input into the system to get it spinning. Trying to draw power from a free-spinning generator floating in space and expecting infinite energy is like pouring milk from a gallon container and expecting to get 2 gallons out of it. It is not physically possible to get more energy out of a mechanical system than what you have put into it.