How to write class names in a console command?

Unfortunately this isn’t possible directly. You’ll have to accept a string instead and parse it.

In C++ this is easy-

UClass* ActorClass = FindObject<UClass>(ANY_PACKAGE, *ClassName);

But in blueprints you’ll have to manually iterate through the items to see if the class’ name is the same as the string.
Or through this method you could instead check against the item’s display name- might be easier for you in-game.