Excel Force-Close CLI Utility

Job ID: 39958862

Budget: $10 – $30 USD

I need a small Windows-friendly command-line tool that I can call from an existing .bat file. Its job is simple:

1. Immediately terminate every running instance of Microsoft Excel 365 (no special error-code handling—just kill the processes).
2. Relaunch Excel in Administrator mode.
3. Open the spreadsheet whose full path is passed in as the first argument of the calling .bat file.

Because this will run unattended on Windows 10 workstations, the utility must:
• Accept the file path argument cleanly (quoted paths with spaces included).
• Write a lightweight log that records each action and any errors to a text file in the same folder as the utility.

A basic, self-contained executable or script is fine as long as setup is minimal—no external installers or complex dependencies. PowerShell, C#, or another standard Windows-native approach will work; feel free to choose what lets you deliver the most reliable, compact solution.