Ну так получать прям строку с фронта и выполнять
Да
Georgy
Андрей
Georgy
Андрей
Андрей
Sergey
Tishka17
Tishka17
Sergey
Tishka17
Sergey
Sergey
koder
Alexandr
Krypton
Ruslan
Krypton
Tishka17
Krypton
🍁 Jaŭhien