Modified how GetPackages runs.

Fixed type.
TODO: Add chocolatey version check.