powershell system diagnostics process waitforexit