So in summary, we investigated failed jobs
by first reviewing the state and then also
the reason, and we walked through how to
extract that information by expanding the
properties that are returned from the
various commands. We also then walked
through how to use the Debug‑Job command
specifically by utilizing Wait‑Debugger in
the script block and then kind of connecting back again.