In C# a RemoveAllFilesByExtenstion
subroutine could be, for example, decleard like this:
void RemoveAllFilesByExtenstion(string targetFolderPath, string ext)
{
...
}
and used like:
RemoveAllFilesByExtenstion("C:\Logs\", ".log");
How can I defne and call a subroutine with the same signature from a PowerShell script file (ps1)?