Running Flash as a server application

We’re interested in putting one of our flash applications on the server back-end so that it can run as a module on the server machine (not on the client!). I know flash wasnt designed for this at all, so my question is:

  1. Can I run Flash from the command prompt and pass parameters to it?

  2. Can I detect when the Flash has finished running, or a way to communicate with the command prompt from Flash (to inform it once the operations has finished).

  3. Can I close the flash application from the command prompt?

Thanks!