Using following command you get retrieve the last booted time of a windows computer.
?
1 | systeminfo | find "System Boot Time" |
If you want to view logs related to shutdown or restart you can get them from
Event viewer > Windows > System and filter or find logs by ID 1074