I have 2 on-premises farms 2013 & 2016. and i want to get all the sharepoint databases names,if they need updates and when they have been backup-ed, now i find this script to get the name and NeedsUpgrade:-
Get-SPDatabase | select Name,NeedsUpgrade
but i am not sure if i can get the last backup date for each database, using the Get-SPDatabase command?