Intel Corporation Interview Question

How would you write a script to test a particular item on a linux server, then reboot the server and recheck the same test after the reboot?