I have a function fn_test with 3 parameters. Then I define a stored procedure to use this function. As it is a function on a linked server, I use openquery
fn_test
openquery