Given that there have been some security fiascos around VBScript, Microsoft was determined not to get burned again. So, by default PowerShell is one of the most secure Microsoft scripting products.
PowerShell modules allow you to combine multiple scripts to simplify code management. Learn step-by-step instructions for creating and using these modules.
I advise against it. But if you must use a logon script to authenticate, here's how to get it done with PowerShell. In my PowerShell training classes or at conferences I inevitably face the question ...