Hi @meklulose,
I've made a test for your reference:
1\Add an "When a HTTP request is received" trigger , save the flow and then copy the URL

2\Navigate to the model-driven studio to edit command bar

3\Add a command button

I)Action : Run JavaScript
II)Add Library
III)Set the Library and then publish the library

function BofTest(){
var requestOptions = {
method: 'POST',
redirect: 'follow'
};
fetch("https://prod-24.southeastasiXXXXXXXXnual%2Frun&sv=1.0&sig=VTuTFhOPqu2REZdY9PYJaZVXfHNbrF88guTtfpd-4xc", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
}
IIII)Set the function name which we want to run

4\Save and publish the model-driven app
Click the button in the app and the flow will be triggered


Best Regards,
Bof