adapted from packer-windows test script