How to configure packer to port forward using AWS ssm

Hello,
I am trying to connect to WinRM using packer . The AWS instance is in a private subnet with NAT Gateway for external connectivity. For Linux machines SSM connects with port forwarding with out any issues, even when it’s in a priv subnet. However with windows iam unable to connect to WinRM with a private subnet .
I tried running “aws ssm portforward” cli, command to map the WinRM port locally for portforwarding . I am wondering how to point packer to that port or get WinRM working with priv subnet, like how ssh works in priv subnet for Linux.

Hello. AnyUpdate on this?