Update PowerShell script for versioning