Skip to content

Instantly share code, notes, and snippets.

@JamesDBartlett3
Last active February 17, 2021 09:01
Show Gist options
  • Save JamesDBartlett3/e5dd308ee9a60f3d2f53112cbdace679 to your computer and use it in GitHub Desktop.
Save JamesDBartlett3/e5dd308ee9a60f3d2f53112cbdace679 to your computer and use it in GitHub Desktop.
A clever little PowerShell & WScript hack that brings the application named in single quotes to the front, or "focuses" it.
PowerShell -Command "$($wshell = New-Object -ComObject wscript.shell; $wshell.AppActivate('Power BI Desktop') | Out-Null);"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment