Is it possible to change a built projects name when running?

I was wondering if it was possible to change a built programs title name/product name via script while the program is running. Googling didn’t turn much up apart from people saying no and this answer:

https://answers.unity.com/questions/148723/how-can-i-change-the-title-of-the-standalone-playe.html

However this doesn’t seem to work for me in Unity 2017.3. Just was curious if anyone else had any luck with this or has a solution I cannot find.

My aim is to have different titles depending on a model selected. So for example if a “Warrior” was selected the title would say “Game: Warrior Route”. If a Mage selected; “Game: Mage Route” etc. Bellow is an image of what I am trying to change if i have used the wrong terminology.

Figured this out just as I was about to quit. The answer linked does work but I formatted it wrong. Here is the script to how I got it working: