PSudo allows you to run a block of powershell as another user.