Added piping and OS check to send-notification.