Main ps1 script