How to get current running application in PoSh?
Just use Get-Process to get the application.
Get-Process
Get-Process applicationName
SessionState.Applications (powershell 2.0 SDK)