Hi Heemansu Gehlot,
Thank you for posting in Microsoft Support Community.
These group policies actually set registry values, so you can set them up directly in PowerShell using the New-ItemProperty cmdlet.
New-Item -Path HKLM:\Software\Policies\Microsoft\Windows\WinRM\Service
# Allow basic Authentication
New-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\WinRM\Service -Name AllowBasic -Value 1 -Type DWord -Force
# Allow Remote Server Management though WinRM
New-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\WinRM\Service -Name AllowAutoConfig -Value 1 -Type DWord -Force
# Allow unencrypted traffic
New-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\WinRM\Service -Name AllowUnencryptedTraffic -Value 1 -Type DWord -Force
New-Item -Path HKLM:\Software\Policies\Microsoft\Windows\WinRM\Service\WinRS
# Allow Remote Shell Access
New-ItemProperty -Path HKLM:\Software\Policies\Microsoft\Windows\WinRM\Service\WinRS -Name AllowRemoteShellAccess -Value 1 -Type DWord -Force