Want an ordered shutdown for your Raspberry Pi? Here's how to add a power switch and shutdown script to the Raspberry Pi.