Windows: .PS1 (Always), .BAT/.CMD (Always), .SH (Sometimes: Usually for WSL's Bash/POSIX) Linux: .SH (Always: Usually Bash, otherwise POSIX), .PS1 (Sometimes: if ...
Source code for some parts of Custom Shaders Patch written in Lua. Feel free to use them for reference, fork them and create your own things, do anything you want.