Add CLI methods to convert scope names

Since scope names are now stored with an underscore internally we need
to convert them in both directions.
Both methods accept a string or an array and return an array because
the common use case is to have a list of scopes.