Well, why would someone do that? Don't you see how big security threat this would be? If you have an application that can do it then hackers would use it and remove antivirus from people system.
In order to access/close the antivirus or any exe running you can use
Processses[
^] to access any running program. If you have the priviledge/admin rights, might be you can play around with it.