In reply to Sv-hustler:
Only in the run_phase you can execute things like you are describing. All other phases prior to the run_phase are intended to construct, connect check and configure your UVM environment. What you want to do you should do prior to any other functionality.