Invoke-WebRequest -TimeoutSec raises a generic exception without confirming cancellation
Goal: determine whether a timeout from Invoke-WebRequest or Invoke-RestMethod in PowerShell 7 can be distinguished from other web-request failures, and whether the underlying HTTP request stops when the client-side timeout elapses. -TimeoutSec bounds the client wait, but the timeout surfaces as a wrapped task or WebRequest exception rather than a distinct Po