Shifting from VBScript or Unix to PowerShell