How to open a game file as a plugin?

I want that when closing the previous script, it is not the script that is in the stream that opens, but the game file itself.

image

ScriptEditorService:FindScriptDocument(MyScript):CloseAsync()

This method opens a script that is in a stream, and not a game file.
image

Could you describe in depth what you want