Deploying lambda function through powershell

I am trying to deploy Lambda function through Powershell after assuming role through STS , however deployment fails as it tries to deploy to parent account , though I am in another account where I need to deploy the function .

Can someone please advise?