Assuming that script is using the vmware.imagebuilder module, you'll need to run that particular script in "Windows Powershell" with vmware.powercli module installed.
Powershell Core is OS-agnostic version that not all modules have been ported to.
Chris Nakagaki (中垣浩一) Blog: https://tech.zsoldier.com Twitter: @zsoldier