Review 27879

Robert Cowham
Implement p4login.bat properly with powershell.
Fix to @27817
#review ttyler
Tip: Use n and p to cycle through the changes.