public override void ExecuteCmdlet() { CloudServiceClient = CloudServiceClient ?? new CloudServiceClient( CurrentSubscription, SessionState.Path.CurrentLocation.Path, WriteDebug, WriteVerbose, WriteWarning); CloudServiceClient.StartCloudService(ServiceName, Slot); if (PassThru) { WriteObject(true); } }