# If there isn't a running process that contains "lync"... if (!((Get-Process | select ProcessName).ProcessName | where {$_ -like "*lync*"})) { # Find the executable somewhere in program files (x86), and run it. &(where.exe /R "C:\Program Files (x86)\Microsoft Office" "lync.exe") }