Use this code (Assuming that you want to call the Scene_Name class with a script)
$game_temp.name_actor_id = actor_id
$game_temp.name_max_char = max_characters
$scene = Scene_Name.new
where actor_id is the actor's id
max_characters is the maximum number of characters
If you just meant the Input Name Window then Its just Window_NameInput.new