Finally got the packages to install first time on the Windowa10 VM by creating two scripts.
The first installs chocolaty. The second is run separately in a new shell, thus picking up choco from the new path. I did this instead of including the exact path to choco, in case this changes in the future