VBScript Function - Microsoft

Hence this guide to translating VBScript to Windows PowerShell. We should point out, right from the start, that this is not intended to be a “word-for-word” translation guide; for better or worse, things don’t quite work that way. Instead, it’s designed to act as a reference guide as you begin writing your first Windows PowerShell scripts. ................
................