I know there is a command out there that will give you the server you logged into for your script but I cannot for the life of me remember what it is.