Yes, Invoke-Command is permitted, but not script blocks. There are also restrictions on the uses of variables, comparison operators, other things. You can use Invoke-Command with a file, though.
Restricted powershell mode

Is it possible to use powershell "Invoke-command" while on restricted powershell mode?
2 answers
Sort by: Most helpful
-
-
answered
2021-11-23T09:00:28.607+00:00 Limitless Technology 37,291 Reputation pointsHi there,
The default execution policy of PowerShell is called Restricted. In this mode, PowerShell operates as an interactive shell only. It does not run scripts, and loads only configuration files signed by a publisher that you trust.
Invoke-command is Interactive one and you can use it in Restricted PowerShell command.
The Invoke-Command cmdlet runs commands on a local or remote computer and returns all output from the commands, including errors.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer--