Update Kill-Java.ps1

Replaced mkdir commands with New-Item.

Also fixed some of the if statements that were not working.