Google Chrome NPAPI is phasing out.
Without using NPAPI, is there any way to allow the extension to execute a command on the local system?
There is chrome.runtime.sendNativeMessage , which can be used to send messages to your own application, and chrome.runtime.connectNative , which allows you to use a more permanent connection.
So, you cannot directly execute the command, but you can have your own application for this.
More information on Native Messaging can be found in the docs .