Code for open url in firefox and close after 10 seconds.
@echo off
CD C:\Program Files (x86)\Mozilla Firefox
start firefox.exe https://energinet.com
timeout /T 20
pushd %~dp0
cscript test.vbs
timeout /T 10
taskkill /F /IM firefox.exe
exit;
Vbs code that sends enter key.
Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.SendKeys "{ENTER}