This can be refactored in the case class so it's not duplicated over all cmdlets