PSObject obtenga el nombre del servicio

 var ServiceName = data.Properties["ServiceName"].Value.ToString();
Arad Aryan