Не удается запустить команду Get-Service в Powershell Ubuntu

#powershell

#powershell

Вопрос:

Я установил Powershell в Ubuntu, и когда я пытаюсь

 Get-Service
 

команда, она возвращает ошибку :

 Get-Service: The term 'Get-Service' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
 

Что я здесь делаю не так? Является Get-Service ли команда только для Windows?

Версия Powershell — это PowerShell 7.1.0

Ответ №1:

Как написано в официальных документах MS, этот командлет доступен только в Windows … Это означает, что на данный момент она недоступна ни для macOS, ни для ubuntu.