[COOK-4188] Add powershell_version method to return Powershell version.

Also refactor ```powershell_installed?```