Skip to content

Instantly share code, notes, and snippets.

@xPaw
Last active March 7, 2026 23:48
Show Gist options
  • Select an option

  • Save xPaw/ccb0ecfa0ea0b9cca2ca4badf2452053 to your computer and use it in GitHub Desktop.

Select an option

Save xPaw/ccb0ecfa0ea0b9cca2ca4badf2452053 to your computer and use it in GitHub Desktop.
if( $args.Length -lt 1 )
{
"Pass in appids as arguments: 440 570 730"
Exit 1
}
foreach( $AppID in $args )
{
# Parse appids from links
$AppID = $AppID -creplace '.*?/([0-9]+).*', '$1'
"App $AppID"
$env:SteamAppId = $AppID
Start-Process Rundll32 steam_api.dll,SteamAPI_Init -Wait
}
"Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment