If filename is something like name.ps1.txt then this is still seen as a txt and will open with default application for txt extension. You would have to rename the file and remove the .txt part. In PowerShell from the same folder you can do Rename-Item -Path ‘name.ps1.txt’ -NewName ‘name.ps1’
qindows powershel ps1 file extension not being recongized, aindows powershel ps1 file extension not being recongized, sindows powershel ps1 file extension not being recongized, eindows powershel ps1 file extension not being recongized, 3indows powershel ps1 file extension not being recongized, 2indows powershel ps1 file extension not being recongized, wundows powershel ps1 file extension not being recongized, wjndows powershel ps1 file extension not being recongized, wkndows powershel ps1 file extension not being recongized, wondows powershel ps1 file extension not being recongized, w9ndows powershel ps1 file extension not being recongized, w8ndows powershel ps1 file extension not being recongized, wibdows powershel ps1 file extension not being recongized, wimdows powershel ps1 file extension not being recongized, wijdows powershel ps1 file extension not being recongized, wihdows powershel ps1 file extension not being recongized, winsows powershel ps1 file extension not being recongized, winxows powershel ps1 file extension not being recongized, wincows powershel ps1 file extension not being recongized, winfows powershel ps1 file extension not being recongized, winrows powershel ps1 file extension not being recongized, wineows powershel ps1 file extension not being recongized, windiws powershel ps1 file extension not being recongized, windkws powershel ps1 file extension not being recongized, windlws powershel ps1 file extension not being recongized, windpws powershel ps1 file extension not being recongized, wind0ws powershel ps1 file extension not being recongized, wind9ws powershel ps1 file extension not being recongized, windoqs powershel ps1 file extension not being recongized, windoas powershel ps1 file extension not being recongized, windoss powershel ps1 file extension not being recongized, windoes powershel ps1 file extension not being recongized, windo3s powershel ps1 file extension not being recongized, windo2s powershel ps1 file extension not being recongized, windowa powershel ps1 file extension not being recongized, windowz powershel ps1 file extension not being recongized, windowx powershel ps1 file extension not being recongized, windowd powershel ps1 file extension not being recongized, windowe powershel ps1 file extension not being recongized, windoww powershel ps1 file extension not being recongized, windows oowershel ps1 file extension not being recongized, windows lowershel ps1 file extension not being recongized, windows -owershel ps1 file extension not being recongized, windows 0owershel ps1 file extension not being recongized, windows piwershel ps1 file extension not being recongized, windows pkwershel ps1 file extension not being recongized, windows plwershel ps1 file extension not being recongized, windows ppwershel ps1 file extension not being recongized, windows p0wershel ps1 file extension not being recongized, windows p9wershel ps1 file extension not being recongized, windows poqershel ps1 file extension not being recongized, windows poaershel ps1 file extension not being recongized, windows posershel ps1 file extension not being recongized, windows poeershel ps1 file extension not being recongized, windows po3ershel ps1 file extension not being recongized, windows po2ershel ps1 file extension not being recongized, windows powwrshel ps1 file extension not being recongized, windows powsrshel ps1 file extension not being recongized, windows powdrshel ps1 file extension not being recongized, windows powrrshel ps1 file extension not being recongized, windows pow4rshel ps1 file extension not being recongized, windows pow3rshel ps1 file extension not being recongized, windows poweeshel ps1 file extension not being recongized, windows powedshel ps1 file extension not being recongized, windows powefshel ps1 file extension not being recongized, windows powetshel ps1 file extension not being recongized, windows powe5shel ps1 file extension not being recongized, windows powe4shel ps1 file extension not being recongized, windows powerahel ps1 file extension not being recongized, windows powerzhel ps1 file extension not being recongized, windows powerxhel ps1 file extension not being recongized, windows powerdhel ps1 file extension not being recongized, windows powerehel ps1 file extension not being recongized, windows powerwhel ps1 file extension not being recongized, windows powersgel ps1 file extension not being recongized, windows powersbel ps1 file extension not being recongized, windows powersnel ps1 file extension not being recongized, windows powersjel ps1 file extension not being recongized, windows powersuel ps1 file extension not being recongized, windows powersyel ps1 file extension not being recongized, windows powershwl ps1 file extension not being recongized, windows powershsl ps1 file extension not being recongized, windows powershdl ps1 file extension not being recongized, windows powershrl ps1 file extension not being recongized, windows powersh4l ps1 file extension not being recongized, windows powersh3l ps1 file extension not being recongized, windows powershek ps1 file extension not being recongized, windows powershep ps1 file extension not being recongized, windows powersheo ps1 file extension not being recongized, windows powershel os1 file extension not being recongized, windows powershel ls1 file extension not being recongized, windows powershel -s1 file extension not being recongized, windows powershel 0s1 file extension not being recongized, windows powershel pa1 file extension not being recongized, windows powershel pz1 file extension not being recongized, windows powershel px1 file extension not being recongized, windows powershel pd1 file extension not being recongized, windows powershel pe1 file extension not being recongized, windows powershel pw1 file extension not being recongized, windows powershel ps2 file extension not being recongized, windows powershel psq file extension not being recongized, windows powershel ps1 dile extension not being recongized, windows powershel ps1 cile extension not being recongized, windows powershel ps1 vile extension not being recongized, windows powershel ps1 gile extension not being recongized, windows powershel ps1 tile extension not being recongized, windows powershel ps1 rile extension not being recongized, windows powershel ps1 fule extension not being recongized, windows powershel ps1 fjle extension not being recongized, windows powershel ps1 fkle extension not being recongized, windows powershel ps1 fole extension not being recongized, windows powershel ps1 f9le extension not being recongized, windows powershel ps1 f8le extension not being recongized, windows powershel ps1 fike extension not being recongized, windows powershel ps1 fipe extension not being recongized, windows powershel ps1 fioe extension not being recongized, windows powershel ps1 filw extension not being recongized, windows powershel ps1 fils extension not being recongized, windows powershel ps1 fild extension not being recongized, windows powershel ps1 filr extension not being recongized