Command line rendering - can you name output after scene name?

Is it possible to name the rendered output file after the scene name using command line rendering?

Thanks in advance

this might help with such command

blender -b file_name.blend -x 1 -o //file -F AVI_JPEG -s 001 -e 250 -S scene_name -a

-b : tells blender to run in background

-x : is used to add an extension to the movie

-o : sets the directory + Target image file

-F : sets the output image type

-s : 001 -e 250 -a set the start frame to 001 and end frame to 250. Important: You can use -s or -e, but if they’re not in order, they’ll not work!

-S : sets the scene name to render (spaces in the name are not supported)

-a : renders the animation

see these threads

https://blender.stackexchange.com/questions/313/is-there-a-way-to-batch-render-multiple-scenes

https://stackoverflow.com/questions/14982836/rendering-and-saving-images-through-blender-python

https://blender.stackexchange.com/questions/1101/blender-rendering-automation-build-script

happy bl