Ever used/heard of Fountain? I'm using it to write my "hurr durr I'm an amateur" script right now and the formatting looks pretty good. It turns out identical to what's recommended in this book. But it's free and can be used by any text editor.
Popular alternatives to
Writing Television Sitcoms ...
Save The Cat! The Last Book on Screenwriting You'll Ever Need