Migrating scripts to source control and powershell