Runs block setting uid and gid if provided then restoring original ids
Make sure the passed argument is a number.
[Validate]