NewCommand creates a new cobra command for switching the default resource group scope of a workspace, which takes in
a factory object and returns a cobra command and a runner object.
Run checks if the resource group specified in the request object exists, and if it does, adds the workspace to
the configuration file. If the resource group does not exist, an error is returned.
Validate checks if the workspace is editable, requires a UCP resource group and sets the workspace and UCP
resource group name in the Runner struct. It returns an error if any of these checks fail.