WordPress Version: 5.4
/**
* Set the current screen object
*
* @since 3.0.0
*
* @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen,
* or an existing screen object.
*/
function set_current_screen($hook_name = '')
{
WP_Screen::get($hook_name)->set_current_screen();
}