Since you're using windows, there's 2 ways of using hlsl. The first is the old original way, that requires that you've installed directx9 from microsoft.
>mame <game> -hlsl
You make your slider adjustments, write them down and put them into the game's ini file. So, if you ran pacman, you'd enter the settings into ini\pacman.ini
The other way is to use bgfx
>mame <game> -video bgfx -bgfx_screen_chains hlsl
Again, make your adjustments, but this time the settings go into the .json files as R.Belmont
said. See this link for more: https://docs.mamedev.org/advanced/bgfx.html