@echo off title Restart_Mozila SET processMozila="Firefox.exe" SET pathToFirefox=С:\FirefoxPortable\App\Firefox\ taskkill.exe /F /IM %processMozila% timeout /T 15 /NOBREAK START %pathToFirefox%Firefox.exe -no-remote -profile С:\profile imacros://run/?m=test.js exit