The "Path Maker" add-on allows you to write tags in the Output Path. Tags will be replace at render time by a string generated with a line of code or a python script.
For example: The tag <scene> can be replace by "bpy.path.display_name_from_filepath(bpy.data.filepath)" so that an Output Path like "C:/hello/<scene>/world" will now be "C:/hello/file_name/world".
Update .toml file
This extension does not require special permissions.