Using PowerShell to remotely install software.

Holy crap this is been hard! Finding a way to do this has taken some serious searching and reading. So enjoy! http://pastebin.com/LpkJnABj

While looking for a way to install software remotely I fond many different
methods that worked, kinda. There were some methods that came very close to doing what I wanted it to. However it just didn’t fit. I needed a way to connect to a workstation via domain admin credentials and update or install some software one it. I hope this helps someone!