diff --git a/lib/winrm/shells/power_shell.rb b/lib/winrm/shells/power_shell.rb
index <HASH>..<HASH> 100644
--- a/lib/winrm/shells/power_shell.rb
+++ b/lib/winrm/shells/power_shell.rb
@@ -32,7 +32,7 @@ module WinRM
 
       class << self
         def finalize(connection_opts, transport, shell_id)
-          proc { PowerShell.close_shell(connection_opts, transport, shell_id) }
+          proc { Powershell.close_shell(connection_opts, transport, shell_id) }
         end
 
         def close_shell(connection_opts, transport, shell_id)
fix powershell finalizer and stop leaking powershell processes