protected override void ProcessRecord() { if (!Directory.Exists(this.Path)) { Directory.CreateDirectory(this.Path); } if (Directory.GetFiles(this.Path).Any()) { throw new ArgumentException("The specified directory must be empty"); } SyncServer.ExportMetaverseConfiguration(this.Path); }