close app,backup,burn backup, shut down

Is there a way to make an applescript that :

  1. close an app (filemaker Pro),
  2. than backup a file,
  3. burn a cd with the backuped file
  4. then shut down my mac ?