How would one activate a window with powershell that has a changing title bar?

Is there a way to use a regex on this or a contains to select the window title bar, instead of just a very specific window?

$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('Application - Ticket: XXXXXX')
Sleep 1
$wshell.SendKeys('Some stuff')