Nmap also has scripting features that we can use to write custom scripts. These scripts can be used with Nmap to automate and extend the scanning capabilities of Nmap.
You can find more information about using Nmap at its official homepage:
https://nmap.org/.