There are a few existing threads available and linked below which should give some pointers to start:
- How to run nvts without ospd-openvas?
- How to test a single .nasl via the command line
- Understanding testing of nasl scripts
- Run an individual nasl script on a target (This is just linking to a previously linked thread and only included here as a reference)