Create Realtime Provider in Scripting

No, there is no such function or way to add a Realtime Provider via scripting.