powershell script to get site template id

Get template id sharepoint site with powershell

There are many situations or tickets we are getting where we need to Get template id sharepoint site that are currently using. I mean template id of one site currently user is using. Here i am sharing how to Get template id sharepoint site with powershell.