Is it possible to move something in the explorer with a script?

So I have been making a plugin lately and you could edit the model you wanted. When you click the “Generate” button on the widget it would Instance the model you wanted. But Is there a way that I can move this model from the folder to the workspace using a script? If so would anyone mind to help and explain.

When you click generate, just have it spawn the model in workspace?

myModel.Parent = workspace