John Patrick Shanley, the writer behind “Moonstruck,” “Joe Versus the Volcano,” “Five Corners” and “Doubt,” is an American treasure. So it was good news when he posted on Twitter last month that he had finished an original screenplay after an unusually dormant period. “In December, I didn’t know if anything new would ever come out of me again,” he wrote.