How to run a shortcut every 30min

The 5 seconds is for testing aiming for 30 min anyways
If i leave this out.


const SHORTCUTNAME = "Random-Wallpaper-Home";
const BASEURL = "shortcuts://run-shortcut?name=";
Safari.open(BASEURL + encodeURI(SHORTCUTNAME));

The

Console.log(‘test’);

Displays every 5 sec but for some reason if i put in the code above. Every thing goes blank.

"use strict" 
let wv = new WebView();
await wv.loadHTML("");
let js = `
const run = setInterval(runShortCut, 5000);
function runShortCut() {
const SHORTCUTNAME = "Random-Wallpaper-Home";
const BASEURL = "shortcuts://run-shortcut?name=";
Safari.open(BASEURL + encodeURI(SHORTCUTNAME));
Console.log(‘test’)
}
`;

 let result = await wv.evaluateJavaScript(js, true) ;