Looks like you are trying to unlock your iPhone.

Generally the AT commands are used to test/configure modems thru com ports.

 In iPhone, you execute these when you are connected to the Minicom ( a program running on iPhone) 

-HTH-