The different ways of executing a Pig script are as follows:
i)Grunt shell
ii)Script file
iii)Embedded script