Title: On github actions ubuntu-latest analysis fails with "The term 'Get-Command' is not recognized as a name of a cmdlet" · Issue #2205 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: On github actions ubuntu-latest analysis fails with "The term 'Get-Command' is not recognized as a name of a cmdlet" · Issue #2205 · PowerShell/PSScriptAnalyzer
X Title: On github actions ubuntu-latest analysis fails with "The term 'Get-Command' is not recognized as a name of a cmdlet" · Issue #2205 · PowerShell/PSScriptAnalyzer
Description: I can't exactly pinpoint what causes this. When I run the pwoershell script analyzet 1.25 on Ubuntu-latest github runners against a powershell 7 project, the analyzer fails to complete its analysis and throws: Invoke-ScriptAnalyzer: /hom...
Open Graph Description: I can't exactly pinpoint what causes this. When I run the pwoershell script analyzet 1.25 on Ubuntu-latest github runners against a powershell 7 project, the analyzer fails to complete its analysis...
X Description: I can't exactly pinpoint what causes this. When I run the pwoershell script analyzet 1.25 on Ubuntu-latest github runners against a powershell 7 project, the analyzer fails to complete its anal...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/2205
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"On github actions ubuntu-latest analysis fails with \"The term 'Get-Command' is not recognized as a name of a cmdlet\"","articleBody":"I can't exactly pinpoint what causes this. When I run the pwoershell script analyzet 1.25 on Ubuntu-latest github runners against a powershell 7 project, the analyzer fails to complete its analysis and throws:\n\n```\nInvoke-ScriptAnalyzer: /home/runner/work/_temp/e8c5014b-7f61-4956-b6d1-75953a6d07f6.ps1:7\nLine |\n 7 | $results = Invoke-ScriptAnalyzer -Path './' -Recurse -Settings 'PSScr …\n | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n | The term 'Get-Command' is not recognized as a name of a cmdlet,\n | function, script file, or executable program. Check the spelling of the\n | name, or if a path was included, verify that the path is correct and try\n | again.\n```\n\nReverting to 1.24 does not exhibit the issue.\n\nFailing workflow run 1.25:\nhttps://github.com/jessehouwing/actions-semver-checker/actions/runs/32254079386/job/96071605798\n\nWorking workflow run 1.24:\nhttps://github.com/jessehouwing/actions-semver-checker/actions/runs/32257267058\n\nNo changes other than changing the pinned version:\nhttps://github.com/jessehouwing/actions-semver-checker/pull/454","author":{"url":"https://github.com/jessehouwing","@type":"Person","name":"jessehouwing"},"datePublished":"2026-08-19T13:22:44Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/2205"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cd41297f-4cfb-8742-532e-d51fbd6b7229 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBEC:3DE870:1498F80:1D06A91:6AFCE25F |
| html-safe-nonce | 0d1b1bfc29d7653c5384ce0c6242e186c3e8c03006bd0e3e721304fcc44ff69b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkVDOjNERTg3MDoxNDk4RjgwOjFEMDZBOTE6NkFGQ0UyNUYiLCJ2aXNpdG9yX2lkIjoiNzUxMDMzMjA2Nzg3NjIzMzgyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d4481678e5111c9bec24da0e6c3e2aa254905ec55f1e3d4298284dad073bf8f5 |
| hovercard-subject-tag | issue:5193106819 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSScriptAnalyzer/2205/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dc21f526faf21a9f860a8e62cf591a0a26be16247abea7cca0e0cd5cfc8ffeab/PowerShell/PSScriptAnalyzer/issues/2205 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dc21f526faf21a9f860a8e62cf591a0a26be16247abea7cca0e0cd5cfc8ffeab/PowerShell/PSScriptAnalyzer/issues/2205 |
| og:image:alt | I can't exactly pinpoint what causes this. When I run the pwoershell script analyzet 1.25 on Ubuntu-latest github runners against a powershell 7 project, the analyzer fails to complete its analysis... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jessehouwing |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0c05b7eb5b95e29725d01bb1f560a020e3fafd0f033c6b9ed3918fa3161254dd |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 33149177 |
| octolytics-dimension-repository_nwo | PowerShell/PSScriptAnalyzer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33149177 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSScriptAnalyzer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 79d9154e55368884c8c93766ba4fee076343d37f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width