Install Application Via Gpo Windows Server 2016

Windows Server 2016 Gpo Templates
I'm trying to get a simple Powershell script to run as a GPO Startup script on my school's workstations. So far I've not had much luck. The script started life as a more involved set of commands intended to determine whether or not an application was installed, and which version, and then install an updated version if required. None of that worked so I've reduced the script to just two lines to see if the script even runs.