In Mac, to find the Finder when login. Here is the way.
Create Apple Script as below code and export as Application. Use Login Item to ensure the script run as a usual application.
I also added a 90 seconds delay just in case the Finder is triggered in later.
tell application "System Events"
tell UI element "Finder" of list 1 of process "Dock"
perform action "AXShowMenu"
click the last menu item of menu 1