How can I upgrade a Chocolatey package if it's already installed, and install it if it isn't?

Running choco upgrade will install the package if it isn't already installed.

https://chocolatey.org/docs/commandsupgrade