I would think that it is not a recommended approach to open a closed accounting period with suitescript due to the inherent risk that your NetSuite environment can cause a mess in your accounting books without even your acknowledgement if you you code a usecase that has unplanned side effects. The SuiteScript supported record types documents that record type Accounting period is read and search only.