If all you’re looking for is a file server (no active directory or domain controller) then Linux with the Samba server will work just fine.
I don’t know about scripts per se, but if you get any one of the commercially available Linux distributions (distros for short), such as Red Hat, Debian, SUSE, etc. and do an install on a blank PC as a server, you’ll be offered the choice of installing a windows file server – which is samba.
You can also check out the docs at www.samba.org, or buy the Samba book from O’Reilly (although it’s cheaper at Amazon.com)
Good luck, and have fun climbing the learning curve…