After doing some research in the standard python library and searching around I found this solution:
from subprocess import Popen
p = Popen([r"C:\Program Files (x86)\Microsoft Office\root\Office16\EXCEL.EXE", 'data.xlsx'], shell=True)
if p.poll() is None:
Popen("taskkill /F /IM EXCEL.EXE",shell=True)
I found the second part here:
Close Excel using CMD
I used shell=true in order to have the command completed in a cmd shell window.
p.poll() basically asks whether or not the program has been killed and it also gives the excel file time to open.
After working this for a bit, I am answering your question but based on my experience, unless command line is required, I always try to avoid it and use either a standard python library or a sturdy external library as subprocess can get pretty complicated with timing and input/outputs. If the excel file takes awhile to load you may run into an issue where it is trying to close the file before it exists. So here you may want to run a timer.
Also forgot to mention that killing the tasks this way will lose any unsaved data in the file, like i said timing will seem to be an issue.