With Bash, you have the command :
Null command. No effect; the command does nothing. Exit Status: Always succeeds.
Example
: 'foo'
Does PowerShell have something similar to this?
With the above example, the ForEach-Object
alias %
works
% 'foo'
Or
function : {}
: 'foo'
Or
[void] 'foo'