How to delete Chrome temp data (history, cookies, cache) using command line

Actually my script works. The reason Omnibox history is not cleared because I chose to sync data to Google Account. So after running the script, if you reopen Chrome, it will restore Omnibox history. Thanks to @Sathya for the comment


Please check if it is having any permission issues. Try running the batch file with additional privileges (run as admin).

OR

Try opening the command prompt and type the commands one by one and check the response to identify where exactly it fails.