PHP exec()

Can one run the php exec command?
I need it to run nslookup on a windows server