use ‘get-childitem’ possibly with ‘-recurse’ depending on your needs.

e.g.

CreationTime      : 2/21/2019 9:18:43 AM
CreationTimeUtc   : 2/21/2019 4:18:43 PM
LastAccessTime    : 2/1/2021 8:36:15 AM
LastAccessTimeUtc : 2/1/2021 3:36:15 PM
LastWriteTime     : 2/21/2019 9:39:48 AM
LastWriteTimeUtc  : 2/21/2019 4:39:48 PM

get-childitem will return a bunch of properties, you can filter and sort after what you need.

then you can use ‘sort-object’ and get the latest.

give it a shot.

If you post code, please use the ‘Insert Code’ button. Please and thank you!