Added tests for hookCommand

This PR fixes a small bug on windows and adds more unit tests for the uniter.
On windows people expect to have to include the extension of files. So adding a .ps1 extension to a powershell script will let everyone know that it is in fact a powershell script. Also, powershell will not allow you to execute a file as a powershell script unless it has the .ps1 extension :). No idea why they decided to go that way (trolling maybe?).