Script command to get the name of an enemy troop?

Is there a script command that I can use to get the name of an enemy troop outside of battle processing mode and put it in a variable?

For example, I have an enemy troop named Lunar Party that sits at enemy troop slot 0061.

It contains 3 members but I don't care about the names of the members.

I want the name of the troop, because I want to stick it in a variable.

I tried a bunch of stuff with $gameTroop.members()[61] but that doesn't work.

If I try $gameTroop.members()[61].name I get an error

Any help with this would be greatly appreciated.
Outside battle, you'll likely need the data; $gameTroop refers to a troop currently in battle. Try this:

$dataTroops[61].name

I'm half guessing, but it could work.
In a battle, you should be able to use $gameTroop.troop().name to get the name for the current troop.
Outside battle, it'll be as above.

$gameTroop.members() is looking at the individual members, which is what you said you didn't want.
To avoid the confusion of people answering in 2 places, I am going to close this thread as it is a continuation of your other thread.

Original thread: https://forums.rpgmakerweb.com/threads/script-command-to-get-the-name-of-an-enemy-troop.97275/