I am pretty new to powershell, this question is going to sound super basic i imagine. but i want my code to check to see if the user has a file in their app data. if the script does not find it. the script will start a process.
i have tried wmi methods but i feel that there is a faster simpler almost one line way to do this i cant think of
$app = Test-Path C:\Users\bobsaget\AppData\Local\Apps\2.0
if($app = "False"){ Start-Process 'an executable' "/s"}
it changes $app to be false and i see where its happening i just dont fully understand what i am doing wrong with my IF statment.