Most of Saved Search isn't exposed to SuiteScript. While you can run and save a search, I don't believe you can edit body fields such as "inactive".
The workarounds we've had to employ are laborious and I don't recommend them. You might be out of luck here.