Returns servers with root login in the last 24 hours and the time the users were logged in.
To learn more about queries, check this guide
SELECT * FROM last WHERE username = "root" AND time > (( SELECT unix_time FROM time ) - 86400 );
PowerShell commands are currently work in progress, contributions welcome.