I think SC uses RBScript to carry out all the scripting stuff.
Theoretically, you could put in any old RBScript commands and watch it do something.
No. SC has a fully custom written scripting system. It took several hundred hours of time back in the day.