I wrote the following script enumerates an OU and then looks up the last boot time for each computer.
https://github.com/mikedixson/GetLastBootTimeFromOU
Note: I’m starting to put any scripts I write on GitHub, this will make it easier for you copy down and easier for me to keep any scripts up to date.