Hello!
Sorry for the late reply, but I am not sure how to help you out with Bolt scripting, as I am not familiar with it.
Thank you for your feedback. I have solved the problem and I will share the script to create nodes in Unity Visual Scripting.