Create a program where you do the things you want to know the syntax for in your script.
Export this part program as BASIC.
Open the exported basic routine in Notepad or another texteditor to see how the part program looks like in BASIC (and re-use the code in your script).