One new feature of PowerShell v6 (its actually been available since alpha 13 but I’d missed it) is the Get-Uptime cmdlet
PS C:scripts> Get-Uptime
Days : 0
Hours : 2
Minutes : 57
Seconds : 6
… Read the full text.