Running Powershell as Admin

Some times you just need to run powershell as an administrator on your system.
For me this was when I wrote a script that creates a WinPE ISO when loading DISM and Imagex I needed to be administrator.

I cant take credit for the code, as I found it online.
I Just cant remember where. But its a handy one to have.