Here's an example of an AppleScript that will run the nmap command to check the status of a specified port on a given IP address:
set target_ip to "192.168.1.100"
set target_port to "80"
do shell script "nmap -p " & target_port & " " & target_ip
This script sets two variables, target_ip and target_port, with the desired IP address and port to check. The do shell script command then runs the nmap command with the specified IP and port. The output of the nmap command will be displayed in the AppleScript Results window.