Question: how can you assign the output of a linux command into a string variable?

Answer: With the following command:

$ APPNAME="castingapp-$(date +%Y%m%d%H%M)"

The output will be:

castingapp-202011010439

Hope that helps