Try using below command with +incdir:
vlog -sv -work work +incdir+$UVM_HOME/src uvm_sim_pk.sv
Make sure $UVM_HOME points to your UVM installation directory.
example:
vlog -sv -work work +incdir+C:/<installation directory>/questa_fe/verilog_src/uvm-1.1d/src uvm_sim_pk.sv
Then vsim example:
vsim -c -sv_lib <installation directory>/uvm-1.1d/win64/uvm_dpi work.my_tb -do "run -all; quit"
You may checkout this webpage for further details:
https://blogs.sw.siemens.com/verificationhorizons/2011/03/08/using-the-uvm-10-release-with-questa/
Do note that the Questa Intel FPGA edition does not support advanced verification features such as randomization. You might see below error message:
# Error: Failure to checkout svverification license feature.
# Fatal: (vsim-7099) Unable to check out a verification license for the randomize() feature.
In that case, you might need to use back the Siemens Questa version. (not Intel/Altera version)
Regards,
Richard Tan