samples/process.types.ps1xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="utf-8"?>
<!--
This file was created with New-PSPropertySet from the
PSTypeExtensionTools module which you can install from
the PowerShell Gallery.
 
Use Update-TypeData to append this file in your PowerShell session.
 
Created 03/09/2021 15:56:03
-->
<Types>
  <Type>
    <Name>System.Diagnostics.Process</Name>
    <Members>
      <PropertySet>
        <Name>PSRun</Name>
        <ReferencedProperties>
          <Name>ID</Name>
          <Name>Name</Name>
          <Name>WS</Name>
          <Name>StartTime</Name>
          <Name>RunTime</Name>
        </ReferencedProperties>
      </PropertySet>
      <ScriptProperty>
        <Name>RunTime</Name>
        <GetScriptBlock>(Get-Date) - $this.starttime</GetScriptBlock>
      </ScriptProperty>
    </Members>
  </Type>
</Types>