Added getstakinginfo command to script