Tried the below code in powershell ISE but it accept only 1st key (Pressing Win) after that it accepts next key as 'g'.
[void][Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[System.Windows.Forms.SendKeys]::sendwait("(^{ESCAPE})g")
But I want to Press the Win+g at a time to open some applications like xbox game bar.
Can anyone guide me on this?