Apologies for not providing specific information in the last question.
I have been working on a demo macOS menu bar app just to explore Xamarin. In order to have the "Launch at Login" option in app, I am executing a script using NSAppleScript. It works fine and the app gets added to Login items of macOS. But there may be some cases when -
In that case, my "Launch at Login" functionality would break. As a workaround, I thought I can check if the item is already in the login items and found out that it's fairly possible using AppleScript. But I could not find out how to get the result back after executing a script.