I have added the required corrections.
az vm run-command invoke -g tf -n ckk1 --command-id RunpowerShellScript --scripts "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" ; "choco install -y python3"
Here is how I ran it in one of my Windows VM
----------
If the Answer is helpful, please click "Accept Answer" and upvote it